️(e2e) set maxFailures with CI

If a test fails (retries included), the test runner
will stop after reaching maxFailures.
We will not have to wait for all tests to
run to see the results.
This commit is contained in:
Anthony LC
2024-12-17 10:32:12 +01:00
committed by Anthony LC
parent cdea75b87f
commit 4e7f095b0f
2 changed files with 5 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
maxFailures: process.env.CI ? 3 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 3 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */