improve e2e flakes
This commit is contained in:
@@ -21,7 +21,6 @@ steps:
|
||||
depends_on: []
|
||||
commands:
|
||||
- npm ci
|
||||
- ./scripts/gen-dev-cert.sh
|
||||
- npm run test:e2e
|
||||
environment:
|
||||
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
||||
|
||||
@@ -35,6 +35,7 @@ export default defineConfig({
|
||||
name: 'desktop-chrome',
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
permissions: ['camera', 'microphone', 'geolocation'],
|
||||
launchOptions: {
|
||||
args: [
|
||||
'--use-fake-ui-for-media-stream',
|
||||
@@ -57,5 +58,5 @@ export default defineConfig({
|
||||
timeout: 180_000, // 3 minutes (180 seconds) for server startup (CI can be slower)
|
||||
ignoreHTTPSErrors: true,
|
||||
},
|
||||
timeout: 60_000, // 60 seconds per test (WebRTC setup takes time)
|
||||
timeout: process.env.CI ? 180_000 : 60_000, // 3 minutes in CI, 1 minute locally (WebRTC setup takes time)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user