Skip to content

Commit

Permalink
Optimize playwright.config.js (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Sep 20, 2023
1 parent 2b675ad commit 19260ac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ const config = {
timeout: 10000
},

/* Run tests in files in parallel */
fullyParallel: true,

/* 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 ? 1 : 0,

/* Tests on CI. */
workers: process.env.CI ? 2 : undefined,
workers: process.env.CI ? 1 : undefined,

/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
Expand All @@ -40,13 +43,13 @@ const config = {
baseURL: process.env.URL || 'http://localhost:8080',

/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
actionTimeout: 15000,

/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',

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

/* Configure projects for major browsers */
Expand Down

0 comments on commit 19260ac

Please sign in to comment.