From 5a4355059d15053b89eae9d82a2506146c7832c0 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 30 Nov 2023 12:18:35 +0000 Subject: [PATCH] Retry flaky tests in Playwright twice (half Cypress) (#11978) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright.config.ts b/playwright.config.ts index e96aa4ddc8..92046df82e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -35,6 +35,7 @@ export default defineConfig({ testDir: "playwright/e2e", outputDir: "playwright/test-results", workers: 1, + retries: process.env.CI ? 2 : 0, reporter: process.env.CI ? "blob" : [["html", { outputFolder: "playwright/html-report" }]], projects: [ {