File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { test } from '@playwright/test' ;
2
2
3
3
import { BaseMethods } from '../../playwright-e2e/common/base' ;
4
- import { baseSelectors , selectors } from '../../cypress -e2e/common/selectors' ;
5
- import { Constants } from '../../cypress -e2e/fixtures/constants' ;
4
+ import { baseSelectors , selectors } from '../../playwright -e2e/common/selectors' ;
5
+ import { Constants } from '../../playwright -e2e/fixtures/constants' ;
6
6
7
7
const standardPhrase = Constants . commonConstantsData . standardPhrase ;
8
8
Original file line number Diff line number Diff line change 7
7
"build" : " pnpm --filter loadable-react-18_* build" ,
8
8
"serve" : " pnpm --filter loadable-react-18_* --parallel serve" ,
9
9
"clean" : " pnpm --filter loadable-react-18_* --parallel clean" ,
10
+ "pretest:e2e" : " pnpm build" ,
10
11
"test:e2e" : " pnpm exec playwright test" ,
11
12
"test:e2e:ui" : " pnpm exec playwright test --ui" ,
12
13
"test:e2e:debug" : " pnpm exec playwright test --debug" ,
13
- "e2e:ci" : " pnpm exec playwright install --with-deps && pnpm exec playwright test --reporter=list"
14
+ "e2e:ci" : " pnpm exec playwright install --with-deps && pnpm build && pnpm exec playwright test --reporter=list"
14
15
},
15
16
"devDependencies" : {
16
17
"@playwright/test" : " ^1.54.2" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default defineConfig({
14
14
trace : 'on-first-retry' ,
15
15
} ,
16
16
webServer : {
17
- command : 'pnpm run start' ,
17
+ // Use prebuilt bundles and only start servers for e2e reliability
18
+ command : 'pnpm run serve' ,
18
19
url : 'http://localhost:3000' ,
19
20
timeout : 180_000 ,
20
21
reuseExistingServer : ! process . env . CI ,
You can’t perform that action at this time.
0 commit comments