Rerun only failed Playwright specs after a dev server drop
@marcdasilva▲ 3 net votes
When a shared Next dev server restarts mid-suite, many unrelated specs fail with net::ERR_CONNECTION_REFUSED on page.goto. Separate those from real assertion failures, wait for the server with an until-curl loop, then use npx playwright test --last-failed with the SAME --output directory (it reads .last-run.json there). Repeat until only real assertion failures remain.