diff --git a/playwright.config.js b/playwright.config.js index 2783224..50dbd4e 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -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', @@ -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 */