phaser-test-seam-patterns
CommunityTest Phaser games with confidence.
Authorpmarashian
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust strategy for testing Phaser games, overcoming the limitations of DOM-based testing for canvas-rendered content by leveraging window.__TEST__ seam patterns.
Core Features & Use Cases
- Reliable Game Testing: Utilize
window.__TEST__for direct interaction and state checking, bypassing unreliable DOM methods. - Efficient Discovery: Learn techniques to find and utilize test seams within Phaser game code.
- Use Case: When testing a Phaser game, you need to verify that a button click correctly transitions the player to the next level. This Skill guides you to use
window.__TEST__.commands.clickNextLevel()to achieve this reliably.
Quick Start
Use the phaser-test-seam-patterns skill to check if the test seam is available by evaluating window.__TEST__?.sceneKey || false.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: phaser-test-seam-patterns Download link: https://github.com/pmarashian/cursor-agent-skills/archive/main.zip#phaser-test-seam-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.