Playwright · tool · fg-0320
Screenshots and traces from an earlier Playwright run vanish when a second run starts
test-results from the first CI step are gone before the upload step
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
Playwright Test empties outputDir at the start of every run. Several invocations that share the default test-results folder delete each other's files.
Fix
Give each invocation its own outputDir, or upload artifacts after each step.
Apply
npx playwright test --project=chromium --output=test-results/chromium npx playwright test --project=firefox --output=test-results/firefox
Affects: Playwright Test, all current versions
Sources
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp