improve e2e flakes
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
Madison Grubb
2026-02-12 11:54:36 -05:00
parent fc6a34c266
commit 7402c29775
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,6 @@ steps:
depends_on: [] depends_on: []
commands: commands:
- npm ci - npm ci
- ./scripts/gen-dev-cert.sh
- npm run test:e2e - npm run test:e2e
environment: environment:
NODE_TLS_REJECT_UNAUTHORIZED: "0" NODE_TLS_REJECT_UNAUTHORIZED: "0"

View File

@@ -35,6 +35,7 @@ export default defineConfig({
name: 'desktop-chrome', name: 'desktop-chrome',
use: { use: {
...devices['Desktop Chrome'], ...devices['Desktop Chrome'],
permissions: ['camera', 'microphone', 'geolocation'],
launchOptions: { launchOptions: {
args: [ args: [
'--use-fake-ui-for-media-stream', '--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) timeout: 180_000, // 3 minutes (180 seconds) for server startup (CI can be slower)
ignoreHTTPSErrors: true, 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)
}) })