mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-29 03:57:09 +00:00
test: scope autoplay flag to Chromium
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user