From 4292d96a99cc7472a2d3e7a0c665c06eeb044853 Mon Sep 17 00:00:00 2001 From: Nick Grosenbacher Date: Mon, 29 Jan 2024 11:37:19 -0500 Subject: [PATCH] SWC-6656 - Only record trace on first retry, which should speed up webkit runs (#5270) --- playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 2728d8f0d0..f47627cd88 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -46,7 +46,8 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ // Until reports are saved in a secure location, do not collect traces on CI, since login network requests include user credentials - trace: process.env.CI ? 'off' : 'retain-on-failure', + // Collect the trace only on the first retry to speed up slow webkit runs. See https://github.com/microsoft/playwright/issues/18119#issuecomment-1370734489 + trace: process.env.CI ? 'off' : 'on-first-retry', }, /* Configure projects for major browsers */