File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,15 @@ jobs:
706706 run : npx playwright install ${{ matrix.settings.browser }} --with-deps
707707
708708 - name : Playwright E2E Tests
709- run : pnpm run test.e2e.${{ matrix.settings.browser }} --timeout 60000 --retries 3
709+ run : pnpm run test.e2e.${{ matrix.settings.browser }}
710+
711+ - name : Upload Playwright Trace
712+ uses : actions/upload-artifact@v4
713+ if : always() # Ensures traces are uploaded even if tests fail
714+ with :
715+ name : playwright-report
716+ path : test-results/ # or test-results/ depending on your config
717+ retention-days : 30
710718
711719 test-cli-e2e :
712720 name : E2E CLI Tests
@@ -762,10 +770,10 @@ jobs:
762770 run : npx playwright install ${{ matrix.settings.browser }} --with-deps
763771
764772 - name : Playwright E2E Integration Tests
765- run : pnpm run test.e2e.integrations.${{ matrix.settings.browser }} --timeout 60000 --retries 3
773+ run : pnpm run test.e2e.integrations.${{ matrix.settings.browser }}
766774
767775 - name : Playwright E2E Qwik React Tests
768- run : pnpm run test.e2e.qwik-react.${{ matrix.settings.browser }} --timeout 60000 --retries 3
776+ run : pnpm run test.e2e.qwik-react.${{ matrix.settings.browser }}
769777
770778 - name : CLI E2E Tests
771779 run : pnpm run test.e2e.cli
Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ const config: PlaywrightTestConfig = {
2323 width : 520 ,
2424 height : 600 ,
2525 } ,
26+ trace : inGithubCI ? "on-first-retry" : undefined ,
27+ screenshot : inGithubCI ? "only-on-failure" : undefined ,
2628 } ,
2729 fullyParallel : true ,
2830 testMatch : "*.e2e.ts" ,
2931 /* Fail the build on CI if you accidentally left test.only in the source code. */
3032 forbidOnly : ! ! process . env . CI ,
3133 testIgnore : / .* e x a m p l e .s p e c .t s x ? $ / ,
32- retries : inGithubCI ? 0 : 1 ,
34+ retries : 1 ,
3335 expect : { timeout : inGithubCI ? 120000 : 10000 } ,
3436 webServer : {
3537 command :
You can’t perform that action at this time.
0 commit comments