/playwright:debug-e2e-testfrom playwright
Systematic workflow for debugging and fixing failing Playwright E2E tests. Analyzes test output, screenshots, error context, and uses Playwright MCP to identify root causes.
Ships in playwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Systematic workflow for debugging and fixing failing Playwright E2E tests.
Run ONLY the specific failing test:
npx playwright test <test-file>.spec.ts -g "test name"
Extract from terminal output:
Use the screenshot from test results to see the visual state at failure time.
Read any error-context.md file from test results:
Understand what the test is trying to do, what selectors it uses, and what assertions it makes.
grep -r "text the test looks for" src/ --include="*.tsx"
Check: routes, text content, element types, selectors.
If artifacts don't reveal the issue:
Fix the test, the code, or both.
npx playwright test <test-file>.spec.ts -g "test name"
If tests pass sometimes and fail other times:
Date.now() or new Date()npx playwright test <file>.spec.ts -g "test name"
npx playwright test <file>.spec.ts -g "test name"
# If results differ, you have non-deterministic data
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bitovi/ai-enablement-prompts --plugin playwright8 skills in this plugin
/computed-stylesExtract and compare computed CSS styles between a baseline URL and a dev/Storybook URL using Playwright MCP evaluate calls. Use when visual differences have been identified and you need to find the exact CSS property mismatches to fix. Pairs with the visual-diff skill for a complete visual QA workflow./debuggingAlways start a fresh browser session after any file change, walk through the full user flow, and monitor for errors before proceeding with further work./discover-visual-statesDiscover all visual states of a component by interactively exploring the production baseline page — not by reading story files. Finds every interactive element (nav items, dropdowns, toggles, buttons) that produces a distinct visual state, records the interactions needed to reach each one, and saves a pixel-perfect.config.json that the pixel-perfect skill uses to replay those same interactions on both production and Storybook. Run this once per component; re-run when the production page changes.Other plugins' skills for the same job