File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 4646 CI : true
4747 PLAYWRIGHT_VIDEO : ' on'
4848 PLAYWRIGHT_APP_BACKEND : backend:8765
49+ REACT_APP_BACKEND : backend:8765
50+ REACT_APP_META_BACKEND : undefined
51+ DISABLE_ESLINT_PLUGIN : true
52+ TSC_COMPILE_ON_ERROR : true
4953
5054 - name : Upload Playwright artifacts
5155 if : always()
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type {PlaywrightTestConfig} from '@playwright/test';
22import { devices } from '@playwright/test' ;
33
44const baseUrl = process . env . PLAYWRIGHT_BASE_URL ;
5+ // In CI all env vars defined in workflow yml
6+ const runAppCommand = process . env . CI ? 'npm run start' : 'npm run dev' ;
57
68const config : PlaywrightTestConfig = {
79 globalSetup : './tests/playwrightSetup.ts' ,
@@ -17,7 +19,7 @@ const config: PlaywrightTestConfig = {
1719 webServer : baseUrl
1820 ? undefined
1921 : {
20- command : 'npm run dev' ,
22+ command : runAppCommand ,
2123 port : 3000 ,
2224 reuseExistingServer : true ,
2325 } ,
You can’t perform that action at this time.
0 commit comments