playwright-testing

Plan, implement, and debug Playwright MCP tests across unit, integration, E2E, and visual layers.

85|42|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/chongdashu/phaserjs-oakwoods --skill playwright-testing-chongdashu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-testing
Source: https://github.com/chongdashu/phaserjs-oakwoods/tree/main/.claude/skills/playwright-testing
Command: npx skills add https://github.com/chongdashu/phaserjs-oakwoods --skill playwright-testing-chongdashu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides frontend teams to plan, implement, and debug tests across unit, integration, E2E, and visual layers using Playwright MCP, reducing flaky outcomes and speeding feedback.

Core Features & Use Cases

  • Deterministic testing patterns for canvas/WebGL games and DOM apps, including readiness signals, deterministic inputs, and state-driven assertions.
  • CI stabilization and flaky test triage workflows to diagnose, categorize, and fix flaky tests, with explicit failure evidence collection.
  • End-to-end and visual validation guidance for critical user flows, including screenshot-based checks and state snapshots to verify expected behavior.

Quick Start

Use the Playwright MCP skill to initiate a deterministic test sequence for a sample app, then observe readiness, drive input, and capture state for validation.

Frequently Asked Questions about playwright-testing

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

FAQPage Schema
How do I write deterministic Playwright tests for canvas and WebGL games?

Deterministic Playwright testing for canvas/WebGL games uses readiness signals, deterministic inputs, and state-driven assertions to verify expected behavior. This approach replaces fragile timing-based waits with explicit state snapshots to reduce flaky outcomes.

What is the best way to triage flaky Playwright tests in CI?

Flaky test triage in CI involves workflows to diagnose, categorize, and fix flaky Playwright tests by collecting explicit failure evidence. This structured approach stabilizes pipelines by isolating root causes rather than blindly retrying failed runs.

Can I use Playwright MCP with Vitest or Jest for frontend testing?

Playwright MCP works alongside Vitest or Jest style frameworks to plan, implement, and debug tests across unit, integration, E2E, and visual layers. This combination enables comprehensive frontend validation from component logic to critical user flows.

How do I capture visual validation screenshots and state snapshots in Playwright?

Visual validation in Playwright uses screenshot-based checks and state snapshots to verify expected behavior during critical user flows. This end-to-end validation captures deterministic UI states to ensure visual regressions are caught reliably.

Why does my Playwright test fail intermittently on Phaser canvas elements?

Intermittent Playwright failures on Phaser canvas elements often stem from missing readiness signals and non-deterministic inputs. Implementing state-driven assertions and explicit readiness checks ensures the game state is stable before driving interactions.