File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,11 @@ export default {
6666 playwrightLauncher ( {
6767 product : "firefox" ,
6868 createBrowserContext ( { browser } ) {
69- return browser . newContext ( { reducedMotion : "reduce" } ) ;
69+ return browser . newContext ( {
70+ reducedMotion : "reduce" ,
71+ viewport : { width : 1280 , height : 720 } ,
72+ deviceScaleFactor : 1 // Force consistent pixel ratio
73+ } ) ;
7074 } ,
7175 launchOptions : {
7276 firefoxUserPrefs : {
@@ -80,7 +84,11 @@ export default {
8084 playwrightLauncher ( {
8185 product : "webkit" ,
8286 createBrowserContext ( { browser } ) {
83- return browser . newContext ( { reducedMotion : "reduce" } ) ;
87+ return browser . newContext ( {
88+ reducedMotion : "reduce" ,
89+ viewport : { width : 1280 , height : 720 } ,
90+ deviceScaleFactor : 1 // Force consistent pixel ratio
91+ } ) ;
8492 } ,
8593 } ) ,
8694 ] ,
You can’t perform that action at this time.
0 commit comments