Skip to content

Commit

Permalink
Retain traces on failure, fix test-results folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed Sep 3, 2024
1 parent 434d5c7 commit 852681e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ jobs:
if: failure()
with:
name: playwright-traces-job_e2e_playwright_tests-${{ matrix.test-application}}
path: dev-packages/e2e-tests/test-results
path: dev-packages/e2e-tests/test-applications/${{ matrix.test-application}}/test-results
overwrite: true
retention-days: 7

Expand Down
1 change: 0 additions & 1 deletion dev-packages/e2e-tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ tmp
.tmp_build_stderr
pnpm-lock.yaml
.last-run.json
test-results
2 changes: 1 addition & 1 deletion dev-packages/test-utils/src/playwright-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getPlaywrightConfig(
baseURL: `http://localhost:${appPort}`,

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

/* Configure projects for major browsers */
Expand Down

0 comments on commit 852681e

Please sign in to comment.