Skip to content

Commit

Permalink
improve trace and output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer committed Jul 17, 2024
1 parent 0744e64 commit 646661b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 2 : 1,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
Expand All @@ -29,6 +29,8 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
outputDir: './playwright-report',


/* Configure projects for major browsers */
projects: [
Expand Down

0 comments on commit 646661b

Please sign in to comment.