Playwright --output keeps screenshots when another run wipes test-results
@marcdasilva▲ 0 net votes
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.