mhylle/claude-skills-collection/e2e-testing
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive E2E testing skill using Playwright MCP for systematic web application testing. This skill should be used when users need to test web-based systems end-to-end, set up test regimes, run exploratory tests, or analyze test history. Triggers on requests like "test my webapp", "set up E2E tests", "run the tests", "what's been flaky", or when validating web application functionality. The skill observes and reports only - it never fixes issues. Supports three modes - setup (create test regime), run (execute tests), and report (analyze results).
Install
npx vskill@latest install mhylle/claude-skills-collection/e2e-testingSKILL.md
E2E Testing Skill
<!-- contents: generated by tests/skill_structure.py --write; edit headings, not this block -->
Contents
- Overview
- Prerequisites
- Mode Selection
- Setup Mode
- Entry Points
- Setup Workflow
- Run Mode
- CRITICAL: Test Status Integrity
- Pre-Run Checks
- Execution Protocol
- Flexibility Criteria Evaluation
- Evidence Bundle
- History Integration
- Report Mode
- Report Types
- Report Presentation
- Quality Checklist
- Setup Mode
- Run Mode
- Report Mode
- Resources
- references/
- Report Templates
Reference files (open one when a step points to it):
references/flexibility-criteria-guide.md: Flexibility Criteria Guidereferences/history-schema.md: Test History Schema Referencereferences/test-regime-schema.md: Test Regime Schema Reference
<!-- /contents -->
Overview
A comprehensive E2E testing skill using Playwright MCP for systematic testing of any web-based system. The skill:
- Observes and reports - Never fixes issues, only documents them
- Discovers paths - Finds undocumented functionality at runtime
- Tracks history - Identifies flaky areas and suggests variations
- Produces dual reports - Human-readable and machine-readable formats
Prerequisites
Before using this skill, verify Playwright MCP is available:
- Check for
playwrightin MCP server configuration - If missing, add to Claude settings:
If Playwright MCP is unavailable, inform the user and provide setup instructions before proceeding.
Mode Selection
This skill operates in three modes. Determine mode from user request:
| User Request | Mode | |
|---|---|---|
| "Set up tests for...", "Create test regime" | Setup | |
| "Run the tests", "Test the...", "Execute tests" | Run | |
| "Show test results", "What failed?", "What's flaky?" | Report |
If unclear, ask: "Would you like to set up a test regime, run existing tests, or view reports?"
Setup Mode
Purpose: Create or update test regime through interactive discovery.
Entry Points
Determine entry point from user context:
| Context | Entry | |
|---|---|---|
| User provides URL | URL Exploration | |
| User describes system purpose | Description-Based | |
| User points to documentation | Documentation Extraction | |
| Combination of above | Combined Flow (recommended) |
Setup Workflow
Step 1: Gather Initial Context
Ask for any missing information:
- URL: Base URL of the application
- Purpose: What does this system do? (1-2 sentences)
- Key workflows: What are the critical user journeys?
- Existing docs: Any README, user stories, or specs?
Step 2: Explore Application
Use Playwright MCP to explore:
For each discovered element, note:
- Element type and purpose
- Alternative paths to reach it
- Required preconditions (login, etc.)
Step 3: Discover Alternative Paths
While exploring, actively look for:
- Multiple ways to accomplish the same goal
- Hidden or non-obvious functionality
- Edge cases in navigation
Document discoveries as: "Found alternative: [description]"
Step 4: Define Test Scenarios
For each key workflow, create scenario with:
Step 5: Create Test Regime File
Write regime to tests/e2e/test_regime.yml:
Step 6: Present Regime for Review
Show user:
- Summary of discovered scenarios
- Blocking dependencies identified
- Alternative paths found
- Ask for confirmation or modifications
Run Mode
Purpose: Execute tests sequentially with full evidence capture.
CRITICAL: Test Status Integrity
Principle: No Invalid Skips
A test should only have three outcomes:
| Status | Meaning | |
|---|---|---|
| PASSED | The feature works as specified | |
| FAILED | The feature doesn't work or doesn't exist | |
| SKIPPED | Only for legitimate environmental reasons (see below) |
Valid Reasons to Skip a Test
- Test environment unavailable (database down, service unreachable)
- Explicit
@skipdecorator for documented WIP features with ticket reference - Platform-specific tests running on wrong platform
- External dependency unavailable (third-party API down)
Invalid Reasons to Skip (Mark as FAILED Instead)
| Situation | Correct Status | Notes Format | |
|---|---|---|---|
| Feature doesn't exist in UI | FAILED | "Expected [feature] not found. Feature not implemented." | |
| Test wasn't executed/completed | FAILED | "Test not executed. [What wasn't verified]." | |
| Test would fail | FAILED | That's the point of testing | |
| "Didn't get around to it" | FAILED | Incomplete test coverage is a failure | |
| Feature works differently than spec | FAILED | "Implementation doesn't match specification: [details]" |
Rationale
The purpose of a test is to fail when something doesn't work. Marking missing features or unexecuted tests as "skipped" produces artificially inflated pass rates and hides real issues. A test report that only shows green isn't useful if it achieved that by ignoring problems.
Implementation Examples
When a test cannot find the expected UI element or feature:
When a test is not fully executed:
When environment is genuinely unavailable (valid skip):
Pre-Run Checks
- Verify regime exists: Check for
tests/e2e/test_regime.yml
- If missing: "No test regime found. Would you like to run Setup mode first?"
- Load history: Check for
tests/e2e/test_history.json
- If exists: Note previously flaky scenarios for extra attention
- Verify Playwright MCP: Confirm browser automation is available
Execution Protocol
Rule 1: Always Start from Beginning
Every test run starts fresh from Step 1 of Scenario 1. Never skip steps or use cached state.
Rule 2: Sequential Execution
Execute scenarios in order. For each scenario:
Rule 3: Failure Handling
When a step fails:
- Mark as failed - Record failure with evidence
- Try alternatives - If alternatives defined, attempt them
- Assess blocking impact:
- Check if this scenario blocks others
- If blocking: Mark dependent scenarios as "blocked"
- If non-blocking: Continue to next scenario
- Never fix - Document the issue, do not attempt repairs
Rule 4: Runtime Discovery
While executing, watch for undocumented paths:
- New navigation options not in regime
- Alternative ways to complete actions
- Unexpected UI states
For discoveries:
- Queue for testing (up to
discovery_caplimit) - Execute after all defined scenarios complete
- Document findings in report
Flexibility Criteria Evaluation
For each success check, apply the configured flexibility type:
| Type | Evaluation Method | |
|---|---|---|
exact | String/value must match exactly | |
contains | Target must contain specified text | |
ai_judgment | Use AI reasoning: "Does this accomplish [goal]?" |
For ai_judgment, provide confidence level:
- High: Clear success/failure
- Medium: Likely success/failure but some ambiguity
- Low: Uncertain, recommend manual review
Evidence Bundle
For each step, capture and store:
History Integration
After run completes:
- Compare to previous runs:
- Same scenario passed before but failed now? Flag regression
- Same scenario failed before? Note persistent issue
- Intermittent pass/fail? Mark as flaky
- Update history file:
Result status rules (see Test Status Integrity):
pass: Feature works as specifiedfail: Feature doesn't work, doesn't exist, or test incompleteblocked: Depends on failed blocking scenarioskipped: ONLY for valid environmental reasons (with ticket reference)
- Generate variations for flaky areas:
- If scenario failed 3+ times in last 10 runs: Auto-suggest new test variations
- Add to
suggested_variationsin history
Report Mode
Purpose: Generate actionable reports from test results.
Report Types
Generate both reports after every run:
Human-Readable Report
Output to tests/e2e/reports/YYYY-MM-DD-HHmmss-report.md:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/e2e-testing/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mhylle/claude-skills-collection/e2e-testing)