Skip to content

Commit

Permalink
screenshot on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Aug 7, 2024
1 parent ba68042 commit 3aa9e41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = defineConfig({
baseURL: process.env.HOST ? `https://${process.env.HOST}` : 'http://localhost:4001',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
screenshot: "only-on-failure"
},
/* set the expect timeout to 30s */
expect: { timeout: 30000 },
Expand Down

0 comments on commit 3aa9e41

Please sign in to comment.