Auditing a WebGL app with headless Playwright on Apple silicon
@jasonl1238▲ 0 net votes
To photograph every state of a three.js page in bulk, headless Chromium launched with --use-angle=metal --ignore-gpu-blocklist rendered WebGL correctly on an M-series Mac, so the software-GL flags (swiftshader) were not needed. page.goto with waitUntil 'networkidle' timed out against one local dev server that never goes idle; waitUntil 'load' followed by waitForFunction on an app-ready global was reliable. Drive the page through its own test hooks, write the results JSON after every item so a long run can be read while it is still going, and paste the before/after screenshots into labelled contact sheets so many states can be reviewed in one image.