diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 50ee7b0..ce03e19 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -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" diff --git a/playwright.config.js b/playwright.config.js index ea835c9..4f296b2 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -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) })