File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 8484
8585 - name : E2E Test
8686 if : ${{steps.skip-ci.outputs.RESULT != 'true'}}
87- run : pnpm playwright install --with-deps chromium && pnpm run test:e2e
87+ run : pnpm run test:e2e
8888
8989 - name : Upload Playwright Report
9090 uses : actions/upload-artifact@v6
Original file line number Diff line number Diff line change 7878
7979 - name : E2E Test
8080 if : ${{steps.skip-ci.outputs.RESULT != 'true'}}
81- run : pnpm playwright install --with-deps chromium && pnpm run test:e2e
81+ run : pnpm run test:e2e
8282
8383 - name : Upload Playwright Report
8484 uses : actions/upload-artifact@v6
Original file line number Diff line number Diff line change 11import { defineConfig } from '@playwright/test' ;
22
3+ const isCI = Boolean ( process . env . CI ) ;
4+
35export default defineConfig ( {
46 // exclude webpack / rspack self-feature test cases when run rspack / webpack test
57 testDir : './e2e' ,
@@ -10,9 +12,11 @@ export default defineConfig({
1012 quiet : true ,
1113 reporter : 'list' ,
1214 use : {
13- trace : 'on' ,
14- video : 'on' ,
15+ trace : isCI ? 'on-first-retry' : 'on' ,
16+ video : isCI ? 'off' : 'on' ,
1517 viewport : { width : 1440 , height : 900 } , // screen size
18+ // Use the built-in Chrome browser to speed up CI tests
19+ channel : isCI ? 'chrome' : undefined ,
1620 } ,
17- retries : process . env . CI ? 3 : 0 ,
21+ retries : isCI ? 3 : 0 ,
1822} ) ;
You can’t perform that action at this time.
0 commit comments