From e1559736309d0f59cecff5b920cbfa7b80b9aa3b Mon Sep 17 00:00:00 2001 From: KoalaDev <6156589+Shik3i@users.noreply.github.com> Date: Tue, 25 Aug 2026 01:19:25 +0200 Subject: [PATCH] test: scope autoplay flag to Chromium --- tests/e2e/playwright.config.mjs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/e2e/playwright.config.mjs b/tests/e2e/playwright.config.mjs index a72f3be..4bc0d3a 100644 --- a/tests/e2e/playwright.config.mjs +++ b/tests/e2e/playwright.config.mjs @@ -17,19 +17,20 @@ export default defineConfig({ expect: { timeout: 10_000 }, use: { baseURL: `http://localhost:${PORT}`, - trace: 'retain-on-failure', - launchOptions: { - // Several fixtures hinge on a video actually playing. Without this - // the browser's autoplay heuristics decide whether the fixture is - // valid, which shows up later as an unexplained flake. - args: ['--autoplay-policy=no-user-gesture-required'] - } + trace: 'retain-on-failure' }, projects: [ { name: 'detection-chromium', testMatch: 'detection.spec.mjs', - use: { browserName: 'chromium' } + use: { + browserName: 'chromium', + launchOptions: { + // Chromium alone supports this switch. Passing it through + // the shared config makes Linux WebKit refuse to launch. + args: ['--autoplay-policy=no-user-gesture-required'] + } + } }, { name: 'detection-firefox',