@@ -9,7 +9,7 @@ const ROOT_PATH = join(__dirname, '..', '..');
99const reactVersion = process . argv [ 2 ] ;
1010const inlinePackagePath = join ( ROOT_PATH , 'packages' , 'react-devtools-inline' ) ;
1111const shellPackagePath = join ( ROOT_PATH , 'packages' , 'react-devtools-shell' ) ;
12- const screenshotPath = join ( ROOT_PATH , 'tmp' , 'screenshots ' ) ;
12+ const playwrightArtifactsPath = join ( ROOT_PATH , 'tmp' , 'playwright-artifacts ' ) ;
1313
1414const { SUCCESSFUL_COMPILATION_MESSAGE } = require (
1515 join ( shellPackagePath , 'constants.js' )
@@ -125,14 +125,22 @@ function runTestShell() {
125125async function runEndToEndTests ( ) {
126126 logBright ( 'Running e2e tests' ) ;
127127 if ( ! reactVersion ) {
128- testProcess = spawn ( 'yarn' , [ 'test:e2e' , `--output=${ screenshotPath } ` ] , {
129- cwd : inlinePackagePath ,
130- } ) ;
128+ testProcess = spawn (
129+ 'yarn' ,
130+ [ 'test:e2e' , `--output=${ playwrightArtifactsPath } ` ] ,
131+ {
132+ cwd : inlinePackagePath ,
133+ }
134+ ) ;
131135 } else {
132- testProcess = spawn ( 'yarn' , [ 'test:e2e' , `--output=${ screenshotPath } ` ] , {
133- cwd : inlinePackagePath ,
134- env : { ...process . env , REACT_VERSION : reactVersion } ,
135- } ) ;
136+ testProcess = spawn (
137+ 'yarn' ,
138+ [ 'test:e2e' , `--output=${ playwrightArtifactsPath } ` ] ,
139+ {
140+ cwd : inlinePackagePath ,
141+ env : { ...process . env , REACT_VERSION : reactVersion } ,
142+ }
143+ ) ;
136144 }
137145
138146 testProcess . stdout . on ( 'data' , data => {
0 commit comments