diff --git a/playwright.config.js b/playwright.config.js index f400189f150..9992299ab73 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -22,6 +22,8 @@ const webServerConfig = { const shouldStartWebServer = process.env.E2E_TEST_ENV === "local" +const maxRetries = 1; + export default defineConfig({ testDir: 'src/e2e/specs', /* Maximum time one test can run for. */ @@ -51,10 +53,10 @@ export default defineConfig({ forbidOnly: !!process.env.CI, /* Limit the number of failures */ - maxFailures: 1, + maxFailures: maxRetries * 2, /* Retry on CI only */ - retries: process.env.CI ? 1 : 0, + retries: process.env.CI ? maxRetries : 0, /* Use a custom percentage of available wokers in CI and use default locally. */ workers: process.env.CI ? "75%" : undefined,