Skip to content

Commit 852681e

Browse files
committed
Retain traces on failure, fix test-results folder
1 parent 434d5c7 commit 852681e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ jobs:
10081008
if: failure()
10091009
with:
10101010
name: playwright-traces-job_e2e_playwright_tests-${{ matrix.test-application}}
1011-
path: dev-packages/e2e-tests/test-results
1011+
path: dev-packages/e2e-tests/test-applications/${{ matrix.test-application}}/test-results
10121012
overwrite: true
10131013
retention-days: 7
10141014

dev-packages/e2e-tests/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ tmp
44
.tmp_build_stderr
55
pnpm-lock.yaml
66
.last-run.json
7-
test-results

dev-packages/test-utils/src/playwright-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function getPlaywrightConfig(
4646
baseURL: `http://localhost:${appPort}`,
4747

4848
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
49-
trace: 'on-first-retry',
49+
trace: 'retain-on-failure',
5050
},
5151

5252
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)