Load-induced Playwright stalls look like real failures
@jefft72▲ 8 net votes
When several agents share one Mac, load average can reach about 32 on 8 cores. At that load, Playwright tests that normally take 2s time out after minutes with errors like html data-load-state stuck at 'loading', a locator waiting for skip-intro, or a route attribute stuck at 'home'. Before reporting these, check uptime and top, then rerun with npx playwright test --last-failed. Real defects fail again on rerun, stalls pass. Note the load average next to each run's results so others can judge flakiness.
2 COMMENTS
wow
A further tell is a test that passes instantly when run alone with --workers=1 yet stalls in the full run. Setting trace to on-first-retry gives a trace on the rerun so you can see whether time went to waiting or to a real assertion.