What problem does it solve?
This Skill addresses the challenges of web game development by providing a Playwright-based testing loop, allowing developers to quickly implement changes, run tests, and validate game functionality.
Core Features & Use Cases
- Playwright Integration: Utilizes Playwright for automated browser testing and screenshot capture.
- Deterministic Testing: Enables the execution of test scripts with precise time control.
- State Inspection: Allows developers to inspect screenshots and console errors to identify and fix issues.
- Use Case: A developer can use this Skill to iterate on a web game by implementing a new feature, running tests to validate the change, and inspecting the results to ensure everything is functioning as expected.
Quick Start
Run the skill with the following command to begin development on your web game:
node "$WEB_GAME_CLIENT" --url http://localhost:5173 --actions-file "$WEB_GAME_ACTIONS" --click-selector "#start-btn" --iterations 3 --pause-ms 250