From 4e7f095b0f22ad7bf0fef7e38f8c7947b5b8ef9c Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 17 Dec 2024 10:32:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(e2e)=20set=20maxFailures=20w?= =?UTF-8?q?ith=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- CHANGELOG.md | 4 ++++ src/frontend/apps/e2e/playwright.config.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42509d5c..d475390e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to - ⚡️(docker) improve y-provider image #422 +## Fixed + +- ⚡️(e2e) reduce flakiness on e2e tests #511 + ## [1.9.0] - 2024-12-11 diff --git a/src/frontend/apps/e2e/playwright.config.ts b/src/frontend/apps/e2e/playwright.config.ts index 401433c1..f6007eb0 100644 --- a/src/frontend/apps/e2e/playwright.config.ts +++ b/src/frontend/apps/e2e/playwright.config.ts @@ -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 */