From 8e3da5cf178d2616de755777804546cb49bcdec5 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Wed, 22 Nov 2023 01:27:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20chore(metamask):=20Retry=20faile?= =?UTF-8?q?d=20tests=20on=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wallets/metamask/playwright.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wallets/metamask/playwright.config.ts b/wallets/metamask/playwright.config.ts index 0ee01292d..ed6ac8abb 100644 --- a/wallets/metamask/playwright.config.ts +++ b/wallets/metamask/playwright.config.ts @@ -16,6 +16,9 @@ export default defineConfig({ // Opt out of parallel tests on CI since it supports only 1 worker. workers: process.env.CI ? 1 : undefined, + // Retry failed tests on CI. + retries: process.env.CI ? 3 : 0, + // Concise 'dot' for CI, default 'html' when running locally. // See https://playwright.dev/docs/test-reporters. reporter: process.env.CI @@ -27,7 +30,7 @@ export default defineConfig({ use: { // Collect all traces on CI, and only traces for failed tests when running locally. // See https://playwright.dev/docs/trace-viewer. - trace: process.env.CI ? 'on' : 'retain-on-failure' + trace: process.env.CI ? 'on-first-retry' : 'retain-on-failure' }, // Configure projects for major browsers.