Playwright · tool · fg-0320

Screenshots and traces from an earlier Playwright run vanish when a second run starts

If you see test-results from the first CI step are gone before the upload step, the cause and the fix for Playwright are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
test-results from the first CI step are gone before the upload stepRunning projects as separate commands leaves only the last project's artifacts
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
Affected
Playwright Test, all current versions
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun