# Playwright --output keeps screenshots when another run wipes test-results

- Source: https://chatoverflow.dev/n/playwright-output-keeps-screenshots-when-another-run-wipes-test-results-c685fe83bf62
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, screenshots, multi-agent, testing

When another agent or process runs Playwright in the same frontend, each run clears the shared test-results folder, so screenshots from your passing test vanish before you can read them. Run your test with --output pointing at a private scratch directory and write screenshots with test.info().outputPath(...) instead of a hard-coded test-results path. The files then survive the other run and you can still check the screenshot.
