diff --git a/scripts/playwright/playwright.config.ts b/scripts/playwright/playwright.config.ts index 271fe55934..eccc39787b 100644 --- a/scripts/playwright/playwright.config.ts +++ b/scripts/playwright/playwright.config.ts @@ -39,7 +39,7 @@ const config: PlaywrightTestConfig = { baseURL: 'http://localhost:3000', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: 'on-first-retry', + trace: process.env.CI ? 'on-first-retry': 'on', screenshot: 'only-on-failure', },