Skip to content

Commit

Permalink
SWC-6656 - Only record trace on first retry, which should speed up we…
Browse files Browse the repository at this point in the history
…bkit runs (#5270)
  • Loading branch information
nickgros authored Jan 29, 2024
1 parent 6fb4719 commit 4292d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default defineConfig({

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
// Until reports are saved in a secure location, do not collect traces on CI, since login network requests include user credentials
trace: process.env.CI ? 'off' : 'retain-on-failure',
// Collect the trace only on the first retry to speed up slow webkit runs. See https://github.com/microsoft/playwright/issues/18119#issuecomment-1370734489
trace: process.env.CI ? 'off' : 'on-first-retry',
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit 4292d96

Please sign in to comment.