Automated browser validation that a web game actually loads and runs. Page errors, console errors, 404s and failed requests, load time, title, viewport meta and Bash.js, page scrolling, canvas fitting the screen at desktop and phone sizes, running inside an iframe like the Bash preview and itch.io (keys reach it after a click), blocked localStorage, and native dialogs. One command, with screens...
Download skill (.zip) Files on GitHubGame browser testing
Writing the code is not proof that the game works. Load it in a browser and look before saying so.
python3 <skill>/scripts/browser-check.py http://localhost:8000/ # desktop + phone
python3 <skill>/scripts/browser-check.py http://localhost:8000/ --sizes desktop,phone,phone-landscape,tablet
python3 <skill>/scripts/browser-check.py http://localhost:8000/ --browser firefox # also: webkit (Safari engine)
| Check | Fails when |
|---|---|
| Load | Page errors, console errors, failed / 4xx / 5xx requests (wrong paths, wrong case) |
| Page | Page scrolls, canvas bigger than the screen. Warns: no <title>, no viewport meta, no Bash.js, slow load (> 5 s) |
| Embed | Errors inside an iframe, or keys don’t reach the game after clicking it (Bash preview, itch.io) |
| Storage blocked | The game crashes when localStorage throws (private mode, some embeds) |
| Dialogs | alert / confirm / prompt are used (blocked in the Bash preview) |
Screenshots for each size go to /tmp/browser-check/. Open them with the view tool: a page with no errors can still be
black, cut off or unreadable.
WebGL, three.js, WebGPU
Never in the sandbox browser (no GPU). Use, in this order: look_at_preview + read_preview_console in the viewer’s
tab, then check_gpu_render if that tab isn’t available. Check the same list by hand: errors, fits the screen, reacts to input.
Next steps after it passes
- Play through it: playwright-game-testing (scripted keys, taps and state checks).
- Before publishing: game-release-validation.
- Fixes for common failures: wrong-case paths → rename the file or the reference (game-asset-management audit finds them);
storage crash → wrap in try/catch; dialogs → in-game UI; scrolling →
overflow: hiddenand size from100dvh.
Reporting
Say exactly what was checked and the result: “Loads with no errors on desktop and phone, works inside an iframe, survives blocked storage. Checked the screenshots.” If something wasn’t checked (a WebGL scene, Safari), say so.