diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts index 8737aba92a6..71c53600d27 100644 --- a/e2e/playwright.config.ts +++ b/e2e/playwright.config.ts @@ -17,6 +17,8 @@ export default defineConfig({ fullyParallel: false, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, + /* Fast-fail CI once failures exceed 5 tests. */ + maxFailures: process.env.CI ? 6 : undefined, /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */