From cf9ae4cf2a0e28cec0b785e6732d60d1155fb366 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 26 Apr 2022 23:18:13 +0545 Subject: [PATCH] test(ci): allow 2 retries on CI (#25197) --- core/playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/playwright.config.ts b/core/playwright.config.ts index 341404d88b..9dbaf4bc14 100644 --- a/core/playwright.config.ts +++ b/core/playwright.config.ts @@ -85,7 +85,7 @@ const config: PlaywrightTestConfig = { }, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, - retries: 0, + retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */