Skip to content

Commit

Permalink
enable playwright screenshot on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 12, 2024
1 parent 939b971 commit a538068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export default defineConfig({

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

// Screenshot on failed test
screenshot: 'only-on-failure',
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit a538068

Please sign in to comment.