From 157c2b37042a9e2baa975e0eb75ee562a988a53a Mon Sep 17 00:00:00 2001 From: fbasso Date: Fri, 28 Jul 2023 10:47:15 +0200 Subject: [PATCH] test: Record traces and videos on retry only --- playwright.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 54017dd889..1822d53c6b 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -65,12 +65,12 @@ if (includesDemo) { const config: PlaywrightTestConfig = { testDir: 'e2e', testMatch: '*e2e-spec.ts', - retries: 0, + retries: 1, reporter: [['list'], ['html', {open: 'never'}]], forbidOnly: isCI, use: { - trace: 'retain-on-failure', - video: 'on', + trace: 'on-all-retries', + video: 'on-first-retry', }, projects, webServer: frameworks.map((framework) => ({