Skip to content

Commit

Permalink
test: Record traces and videos on retry only
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso committed Jul 28, 2023
1 parent ecfeeb7 commit 157c2b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ if (includesDemo) {
const config: PlaywrightTestConfig = {
testDir: 'e2e',
testMatch: '*e2e-spec.ts',
retries: 0,
retries: 1,
reporter: [['list'], ['html', {open: 'never'}]],
forbidOnly: isCI,
use: {
trace: 'retain-on-failure',
video: 'on',
trace: 'on-all-retries',
video: 'on-first-retry',
},
projects,
webServer: frameworks.map((framework) => ({
Expand Down

0 comments on commit 157c2b3

Please sign in to comment.