Skip to content

Commit

Permalink
Merge pull request #62 from slidr-app/screenshot-on-e2e-test-failure
Browse files Browse the repository at this point in the history
enable playwright screenshot on test failure
  • Loading branch information
codyzu authored Feb 12, 2024
2 parents a7f0c13 + a538068 commit b9e1fd6
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 b9e1fd6

Please sign in to comment.