From a97e9a8b802798789493ad6b242cc63a7ebaa678 Mon Sep 17 00:00:00 2001 From: roble Date: Sun, 25 Oct 2026 16:43:26 +0000 Subject: [PATCH] fix: adjust retry logic in Playwright configuration for better test stability --- playwright.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 26a7b736..2827434b 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -27,8 +27,9 @@ async function createConfig() { 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, + /* Locally one retry, so a single timing flake under load doesn't fail the run. + A test that only passes on retry is still reported as flaky. */ + retries: process.env.CI ? 2 : 1, /* Opt out of parallel tests on CI. Locally, more than two browsers loading pages at once outruns the PHP worker pool behind the app. */ workers: process.env.CI ? 1 : 2,