Playwright · tool · fg-0318
No trace.zip for a failed test because the config records traces only on first retry
test-results has no trace.zip for a local failure
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
The generated config uses trace: 'on-first-retry' together with retries: 0 outside CI. With no retry, nothing is recorded.
Fix
Use retain-on-failure, which records every test and keeps only the failing ones.
Apply
// playwright.config.ts
use: { trace: 'retain-on-failure' }
# or one run: npx playwright test --trace onAffects: Playwright Test configs created by npm init playwright, all current versions
Sources
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp