Webapp Testing
Use when testing web applications with AI-assisted Playwright. Features autonomous test agents for planning, generating, and self-healing tests automatically.
$ インストール
git clone https://github.com/yonatangross/skillforge-claude-plugin /tmp/skillforge-claude-plugin && cp -r /tmp/skillforge-claude-plugin/.claude/skills/webapp-testing ~/.claude/skills/skillforge-claude-plugin// tip: Run this command in your terminal to install the skill
name: Webapp Testing description: Use when testing web applications with AI-assisted Playwright. Features autonomous test agents for planning, generating, and self-healing tests automatically. context: fork agent: test-generator version: 1.0.0 author: SkillForge AI Agent Hub tags: [playwright, testing, e2e, automation, agents, 2025] hooks: PostToolUse: - matcher: "Write|Edit" command: "$CLAUDE_PROJECT_DIR/.claude/hooks/skill/test-runner.sh" Stop: - command: "$CLAUDE_PROJECT_DIR/.claude/hooks/skill/coverage-check.sh"
Webapp Testing Skill
Overview
Autonomous end-to-end testing with Playwright's three specialized agents for planning, generating, and self-healing tests automatically.
When to Use
- Setting up E2E testing for web applications
- Generating tests from user flows
- Creating self-healing test suites
- Testing critical user journeys
The Three Agents
- Planner - Explores app and creates test plans
- Generator - Writes Playwright tests with best practices
- Healer - Fixes failing tests automatically
Quick Setup
# 1. Install Playwright
npm install --save-dev @playwright/test
# 2. Add MCP server
claude mcp add playwright npx '@playwright/mcp@latest'
# 3. Initialize agents
npx playwright init-agents --loop=claude
# 4. Create tests/seed.spec.ts (required for Planner)
Requirements: VS Code v1.105+ (Oct 9, 2025)
Agent Workflow
1. PLANNER ──▶ Explores app ──▶ Creates specs/checkout.md
(uses seed.spec.ts)
│
▼
2. GENERATOR ──▶ Reads spec ──▶ Tests live app ──▶ Outputs tests/checkout.spec.ts
(verifies selectors actually work)
│
▼
3. HEALER ──▶ Runs tests ──▶ Fixes failures ──▶ Updates selectors/waits
(self-healing)
Directory Structure
your-project/
├── specs/ ← Planner outputs (Markdown plans)
├── tests/ ← Generator outputs (Playwright tests)
│ └── seed.spec.ts ← Required: Planner learns from this
└── playwright.config.ts
Key Concepts
seed.spec.ts is required - Planner executes this to learn:
- Environment setup (fixtures, hooks)
- Authentication flow
- Available UI elements
Generator validates live - Doesn't just translate Markdown, actually tests app to verify selectors work.
Healer auto-fixes - When UI changes break tests, Healer replays, finds new selectors, patches tests.
See references/ for detailed agent patterns and commands.
Capability Details
playwright-setup
Keywords: playwright, setup, install, configure, mcp Solves:
- How do I set up Playwright testing?
- Install Playwright MCP server
- Configure test environment
- Initialize Playwright agents with Claude
test-planning
Keywords: test plan, scenarios, user flows, test cases, planner agent Solves:
- How do I create a test plan?
- Use Planner agent to explore app
- Identify test scenarios automatically
- Plan user flow testing with seed.spec.ts
test-generation
Keywords: generate tests, write tests, playwright code, selectors, generator agent Solves:
- How do I generate Playwright tests?
- Use Generator agent to write test code
- Create semantic locators that validate live
- Write tests with best practices
test-healing
Keywords: fix tests, failing tests, self-heal, maintenance, healer agent Solves:
- How do I fix failing tests automatically?
- Use Healer agent to update broken selectors
- Maintain test suite after UI changes
- Self-healing test automation
agent-workflow
Keywords: planner generator healer, test workflow, autonomous testing, playwright agents Solves:
- How do the three Playwright agents work together?
- Complete testing workflow with agents
- Planner → Generator → Healer pipeline
- Autonomous test creation and maintenance
visual-regression
Keywords: visual regression, screenshot, toHaveScreenshot, snapshot, VRT, baseline, pixel diff, visual testing Solves:
- How do I set up visual regression testing with Playwright?
- Replace Percy with Playwright native screenshots
- Configure toHaveScreenshot thresholds
- Handle cross-platform screenshot differences
- Mask dynamic content in screenshots
- Set up visual regression in CI/CD
- Update screenshot baselines
- Debug failed visual comparisons
Repository
