Add browser-level automated test for the web prototype UI #3

Closed
opened 2026-09-21 16:04:15 +00:00 by Mark · 0 comments
Owner

The seven tools/*.js harnesses exercise the headless game engine (game/maps/data logic) and all pass, but web/js/ui.js, web/js/audio.js, and web/js/main.js (DOM event wiring, canvas rendering, title screen flow) have no automated coverage. A Playwright-driven smoke (load page, start mission 1, issue a move order, assert sim advances) would catch UI regressions the headless tools can't.

The seven `tools/*.js` harnesses exercise the headless game engine (game/maps/data logic) and all pass, but `web/js/ui.js`, `web/js/audio.js`, and `web/js/main.js` (DOM event wiring, canvas rendering, title screen flow) have no automated coverage. A Playwright-driven smoke (load page, start mission 1, issue a move order, assert sim advances) would catch UI regressions the headless tools can't.
Mark closed this issue 2026-09-22 15:26:28 +00:00
Sign in to join this conversation.
No description provided.