Skip to content

Commit f9c47de

Browse files
test: enable full traces locally for Playwright UI debugging
Change trace from 'on-first-retry' to 'on' locally so Playwright UI mode captures trace data for all test runs (not just retries). CI keeps the efficient 'on-first-retry' setting via the CI env var. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a07a3b5 commit f9c47de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

playwright/playwright.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default defineConfig({
3636
],
3737

3838
use: {
39-
trace: 'on-first-retry',
39+
trace: process.env.CI ? 'on-first-retry' : 'on',
4040
screenshot: 'only-on-failure',
4141
video: 'retain-on-failure',
4242

0 commit comments

Comments
 (0)