1- import  {  defineConfig  }  from  "@playwright/test" ; 
1+ import  {  defineConfig ,   devices  }  from  "@playwright/test" ; 
22
33const  base  =  defineConfig ( { 
44	use : { 
55		screenshot : "only-on-failure" , 
66		trace : "retain-on-failure" , 
7- 		permissions : [ "clipboard-read" ,  "clipboard-write" ,  "microphone" ] , 
87		bypassCSP : true , 
98		launchOptions : { 
109			args : [ 
@@ -24,11 +23,24 @@ const base = defineConfig({
2423} ) ; 
2524
2625const  normal  =  defineConfig ( base ,  { 
27- 	globalSetup : process . env . CUSTOM_TEST  ? undefined  : "./playwright-setup.js" 
26+ 	globalSetup : process . env . CUSTOM_TEST  ? undefined  : "./playwright-setup.js" , 
27+ 	projects : [ 
28+ 		{ 
29+ 			name : "firefox" , 
30+ 			use : {  ...devices [ "Desktop Firefox" ]  } , 
31+ 			testMatch : / .s t r e a m _ ( a u d i o | v i d e o ) _ o u t \. s p e c \. t s / 
32+ 		} , 
33+ 		{ 
34+ 			name : "chrome" , 
35+ 			use : { 
36+ 				...devices [ "Desktop Chrome" ] , 
37+ 				permissions : [ "clipboard-read" ,  "clipboard-write" ,  "microphone" ] 
38+ 			} , 
39+ 			testIgnore : / .s t r e a m _ ( a u d i o | v i d e o ) _ o u t \. s p e c \. t s / 
40+ 		} 
41+ 	] 
2842} ) ; 
2943
30- normal . projects  =  undefined ;  // Explicitly unset this field due to https://github.com/microsoft/playwright/issues/28795 
31- 
3244const  lite  =  defineConfig ( base ,  { 
3345	webServer : { 
3446		command : "python -m http.server 8000 --directory ../js/lite" , 
@@ -46,6 +58,4 @@ const lite = defineConfig(base, {
4658	timeout : 60000 
4759} ) ; 
4860
49- lite . projects  =  undefined ;  // Explicitly unset this field due to https://github.com/microsoft/playwright/issues/28795 
50- 
5161export  default  ! ! process . env . GRADIO_E2E_TEST_LITE  ? lite  : normal ; 
0 commit comments