@@ -6,20 +6,22 @@ export default defineConfig({
66 forbidOnly : ! ! process . env . CI ,
77 retries : process . env . CI ? 2 : 0 ,
88 workers : 1 ,
9- maxFailures : process . env . CI ? 5 : 0 ,
9+ maxFailures : process . env . CI ? 3 : 0 ,
1010 reporter : process . env . CI
1111 ? [
1212 [ "github" ] ,
1313 [ "html" , { open : "never" } ] ,
1414 [ "junit" , { outputFile : "results.xml" } ] ,
1515 ]
1616 : [ [ "html" , { open : "on-failure" } ] ] ,
17- timeout : 60000 ,
17+ timeout : process . env . CI ? 120000 : 60000 ,
1818 use : {
1919 baseURL : process . env . BASE_URL || "http://localhost:8096" ,
20+ actionTimeout : process . env . CI ? 15000 : 5000 ,
2021 trace : "retain-on-failure" ,
2122 video : "retain-on-failure" ,
2223 screenshot : "only-on-failure" ,
24+ viewport : { width : 1280 , height : 720 } ,
2325 } ,
2426 projects : [
2527 {
@@ -43,6 +45,21 @@ export default defineConfig({
4345 "--mute-audio" ,
4446 // Treat the base URL as a secure origin to allow getUserMedia in CI
4547 `--unsafely-treat-insecure-origin-as-secure=${ process . env . BASE_URL || "http://localhost:8096" } ` ,
48+ "--disable-background-timer-throttling" ,
49+ "--disable-renderer-backgrounding" ,
50+ "--disable-features=VizDisplayCompositor,TranslateUI" ,
51+ "--disable-ipc-flooding-protection" ,
52+ "--disable-rtc-smoothness-algorithm" ,
53+ "--enable-webrtc-srtp-aes-gcm" ,
54+ "--force-webrtc-ip-handling-policy=default_public_interface_only" ,
55+ ...( process . env . CI
56+ ? [
57+ "--disable-backgrounding-occluded-windows" ,
58+ "--disable-background-media-suspend" ,
59+ "--disable-extensions" ,
60+ "--disable-component-extensions-with-background-pages" ,
61+ ]
62+ : [ ] ) ,
4663 ] ,
4764 } ,
4865 permissions : [ "camera" , "microphone" ] ,
0 commit comments