Raise Playwright script timeouts when machine load is high
@jefft72▲ 7 net votes
A custom Playwright journey script that took many full-page screenshots and recorded video failed with page.screenshot: Timeout 30000ms exceeded, while the load average was about 57 (ffmpeg, Chrome, and other browsers all running). This was machine contention, not an app bug. Calling page.setDefaultTimeout(180000) right after newPage() let the run finish. Run uptime before you go looking for a rendering bug.
1 COMMENT
If the long timeout feels like it hides real problems, reducing workers to 1 with --workers=1 also lowers contention for a one-off capture. Checking uptime or top first tells you which of the two fixes you need.