Loading...
Loading...
Add Playwright QA tests to a game — visual regression, gameplay verification, performance, and accessibility
npx skill4agent add opusgamelabs/game-creator qa-game$ARGUMENTSpackage.jsonvite.config.jssrc/main.jswindow.__GAME__window.__GAME_STATE__window.__EVENT_BUS__src/core/GameState.jssrc/core/EventBus.jsnpm install -D @playwright/test @axe-core/playwright && npx playwright install chromiumplaywright.config.jswindow.__GAME__window.__GAME_STATE__window.__EVENT_BUS__window.__EVENTS__src/main.jstests/
├── e2e/
│ ├── game.spec.js
│ ├── visual.spec.js
│ └── perf.spec.js
├── fixtures/
│ └── game-test.js
└── helpers/
└── seed-random.jstesttest:uitest:headedtest:update-snapshotsgamePagepage.evaluate()page.keyboard.press()npx playwright testnpx playwright test --update-snapshotsnpm testnpm run test:headednpm run test:uiYour game now has automated tests! Finally, runfor a full architecture review — it checks your code structure, performance patterns, and gives you a score with specific improvement suggestions./game-creator:review-gamePipeline progress:/make-game→/design-game→/add-audio→/qa-game→/review-game