phaser-game-testing

Automate deterministic testing of Phaser 3 games with browser automation and assertions.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/pmarashian/cursor-agent-skills --skill phaser-game-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phaser-game-testing
Source: https://github.com/pmarashian/cursor-agent-skills/tree/main/phaser-game-testing
Command: npx skills add https://github.com/pmarashian/cursor-agent-skills --skill phaser-game-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables deterministic testing of Phaser games and canvas/WebGL applications, ensuring reliable frontend tests and faster debugging.

Core Features & Use Cases

  • Deterministic Testing: Plan, implement, and debug frontend tests (unit, integration, E2E, visual, a11y) for Phaser 3 games.
  • Browser Automation: Use agent-browser CLI for browser automation, Vitest/Jest/RTL, flaky test triage, and CI stabilization.
  • Use Case: Automatically test a Phaser game's core gameplay loop, ensuring that player movement, scoring, and win/loss conditions function correctly across different environments.

Quick Start

Use the phaser-game-testing skill to run a smoke test on the game loaded at http://localhost:3000.

Frequently Asked Questions about phaser-game-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run deterministic tests for a Phaser 3 game?

Deterministic testing for a Phaser 3 game involves automating unit, integration, and visual tests using Vitest or Jest. This Skill provides methods for deterministic input injection and screenshot assertions to ensure reliable gameplay validation.

Can I use Vitest and agent-browser for Phaser game E2E testing?

Yes, you can use Vitest alongside the agent-browser CLI to perform Phaser game E2E testing. This combination enables browser automation, visual assertions, and flaky test triage for canvas and WebGL applications.

What is the best way to automate canvas and WebGL game testing?

Automating canvas and WebGL game testing requires deterministic browser automation that can capture visual state and execute reliable input. This Skill leverages agent-browser and Vitest to orchestrate visual, a11y, and end-to-end assertions.

Why are my Phaser game's E2E tests flaky in CI and how do I fix them?

Flaky E2E tests in CI often stem from non-deterministic canvas rendering or timing issues. This Skill stabilizes CI by providing deterministic testing methods, input injection, and flaky test triage for Phaser applications.

Does this approach support accessibility and visual testing for WebGL applications?

Yes, this approach supports both accessibility and visual testing for WebGL applications. It facilitates planning and debugging frontend tests, allowing you to implement a11y checks and visual state assertions alongside integration tests.