
e2e-test-specialist
Database-backed E2E test specialist that resumes large Playwright suites after crashes or resets.
- version
- 2.7.0
- GitHub stars
- 36
What it does
- Adds 34 commands (
/start,/test,/resume,/import,/bugs,/reset, and more),e2e-test-agent, and four skills:flow-test,page-test,role-test,test-plan - Stores plans in SQLite and checkpoints each step before it runs, so
/resumecontinues from the last unfinished step - Enforces heartbeat-based crash detection: stale sessions are reaped to
crashed, and tests are soft-deleted viadeprecated_atrather than removed - Designed for suites of 50+ phases and 1000+ steps, and can import existing markdown ledgers through
/import
Database-backed E2E testing for large suites (50+ phases, 1000+ steps). SQLite plan storage, tag-driven selection, heartbeat-based crash recovery, importable from existing markdown ledgers, and Playwright MCP execution with checkpoint persistence.
Add marketplace
/plugin marketplace add mwguerra/claude-code-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install e2e-test-specialist@mwguerra-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceE2E Flow Testing Skill
Overview
This skill executes complete user flow testing using Playwright MCP. It tests end-to-end journeys through the application, from start to finish, verifying that multi-step processes work correctly.
Standard Test Plan Location
Plan file: tests/e2e-test-plan.md
This skill reads flow definitions from the test plan at tests/e2e-test-plan.md. If the plan file doesn't exist, the calling command should invoke the test-plan skill first to generate it.
Purpose
Ensure that:
- Complete user journeys work from start to finish
- State persists correctly between steps
- Error handling works throughout flows
- Edge cases in flows are handled
- Business logic executes correctly
Workflow
Step 0: Test Plan Verification (REQUIRED FIRST)
CRITICAL: Before testing flows, verify the test plan exists.
-
Check for Test Plan
- Look for
tests/e2e-test-plan.md - If the file exists, read the "Critical Flows" section
- If the file does NOT exist, STOP and report that the plan must be generated first
- Look for
-
Read Flow Definitions from Plan
- Extract authentication flows
- Extract core business flows
- Extract administrative flows
- Use this list for testing
Step 1: Identify Critical Flows
-
Authentication Flows
- User registration
- User login
- Password reset
- Logout
-
Core Business Flows
- Main feature workflows
- CRUD operations
- Transactions/checkouts
- Data processing
-
Administrative Flows
- User management
- Configuration changes
- Reporting
Step 2: Flow Documentation
For each flow, document:
## Flow: User Registration
### Overview
Complete user registration from signup to verified account
### Steps
1. Navigate to registration page
2. Fill registration form
3. Submit form
4. Receive confirmation
5. Verify email (if applicable)
6. Complete profile (if applicable)
7. Access dashboard
### Prerequisites
- No existing account
- Valid email address
### Expected Outcomes
- User account created
- Verification email sent
- User can login
- Profile accessible
### Error Cases
- Duplicate email
- Weak password
- Invalid email format
- Required fields missing
Step 3: Execute Flow Tests
For EACH flow:
-
Setup
- Clear any previous state
- Prepare test data
- Set initial conditions
-
Execute Steps
- Perform each step
- Verify state after each step
- Capture snapshots
-
Verify Outcome
- Check final state
- Verify data persistence
- Check side effects
-
Test Error Cases
- Repeat flow with error conditions
- Verify proper error handling
Common Flow Patterns
Registration Flow
Step 1: Navigate to Registration
browser_navigate({ url: "/register" })
browser_snapshot()
Verify: Registration form visible
Step 2: Fill Registration Form
browser_fill_form({
fields: [
{ name: "Name", type: "textbox", ref: "[name-ref]", value: "Test User" },
{ name: "Email", type: "textbox", ref: "[email-ref]", value: "test@example.com" },
{ name: "Password", type: "textbox", ref: "[password-ref]", value: "SecurePass123!" },
{ name: "Confirm Password", type: "textbox", ref: "[confirm-ref]", value: "SecurePass123!" }
]
})
browser_snapshot()
Verify: All fields filled
Step 3: Submit Form
browser_click({ element: "Register button", ref: "[submit-ref]" })
browser_wait_for({ text: "Account created" OR redirect to dashboard })
browser_snapshot()
browser_console_messages({ level: "error" })
Verify: No errors, success message or redirect
Step 4: Verify Account
If email verification required:
Check for verification message
Else:
browser_snapshot()
Verify: Dashboard or profile accessible
Step 5: Verify Can Login
browser_navigate({ url: "/logout" })
browser_navigate({ url: "/login" })
browser_fill_form with credentials
browser_click submit
browser_wait_for dashboard
Verify: Successfully logged in
Login Flow
Step 1: Navigate to Login
browser_navigate({ url: "/login" })
browser_snapshot()
Verify: Login form visible
Step 2: Enter Credentials
browser_fill_form({
fields: [
{ name: "Email", type: "textbox", ref: "[email-ref]", value: "user@example.com" },
{ name: "Password", type: "textbox", ref: "[password-ref]", value: "password" }
]
})
Step 3: Submit
browser_click({ element: "Login button", ref: "[submit-ref]" })
browser_wait_for({ text: "Dashboard" OR text: "Welcome" })
browser_snapshot()
Verify: Logged in state, user menu visible
Step 4: Verify Session
browser_navigate({ url: "/profile" })
browser_snapshot()
Verify: User profile accessible
browser_navigate({ url: "/protected-page" })
browser_snapshot()
Verify: Protected content accessible
Password Reset Flow
Step 1: Navigate to Forgot Password
browser_navigate({ url: "/forgot-password" })
browser_snapshot()
Verify: Email input form visible
Step 2: Request Reset
browser_type({
element: "Email field",
ref: "[email-ref]",
text: "user@example.com"
})
browser_click({ element: "Send reset link", ref: "[submit-ref]" })
browser_wait_for({ text: "email sent" OR text: "check your email" })
browser_snapshot()
Verify: Success message
Step 3: (Simulated) Click Reset Link
browser_navigate({ url: "/reset-password?token=TEST_TOKEN" })
browser_snapshot()
Verify: Password reset form visible
Step 4: Set New Password
browser_fill_form({
fields: [
{ name: "New Password", type: "textbox", ref: "[password-ref]", value: "NewPass123!" },
{ name: "Confirm Password", type: "textbox", ref: "[confirm-ref]", value: "NewPass123!" }
]
})
browser_click({ element: "Reset Password", ref: "[submit-ref]" })
browser_wait_for({ text: "Password updated" OR redirect to login })
browser_snapshot()
Verify: Success message or login page
CRUD Flow (Create-Read-Update-Delete)
Step 1: Navigate to List
browser_navigate({ url: "/items" })
browser_snapshot()
Note: Initial item count
Step 2: Create Item
browser_click({ element: "Create new", ref: "[create-ref]" })
browser_snapshot()
Verify: Create form visible
browser_fill_form({
fields: [
{ name: "Title", type: "textbox", ref: "[title-ref]", value: "Test Item" },
{ name: "Description", type: "textbox", ref: "[desc-ref]", value: "Test description" }
]
})
browser_click({ element: "Save", ref: "[save-ref]" })
browser_wait_for({ text: "created" OR redirect to list })
browser_snapshot()
Verify: Item created, appears in list
Step 3: Read Item
browser_click({ element: "View item", ref: "[view-ref]" })
browser_snapshot()
Verify: Item details displayed correctly
Step 4: Update Item
browser_click({ element: "Edit", ref: "[edit-ref]" })
browser_snapshot()
Verify: Edit form with current values
browser_type({
element: "Title field",
ref: "[title-ref]",
text: "Updated Title"
})
browser_click({ element: "Save", ref: "[save-ref]" })
browser_wait_for({ text: "updated" })
browser_snapshot()
Verify: Changes saved
Step 5: Delete Item
browser_click({ element: "Delete", ref: "[delete-ref]" })
If confirmation dialog:
browser_handle_dialog({ accept: true })
browser_wait_for({ textGone: "Updated Title" })
browser_snapshot()
Verify: Item removed from list
Checkout Flow (E-commerce)
Step 1: Add to Cart
browser_navigate({ url: "/products/1" })
browser_click({ element: "Add to cart", ref: "[add-ref]" })
browser_wait_for({ text: "Added" OR cart count update })
browser_snapshot()
Verify: Item in cart
Step 2: View Cart
browser_navigate({ url: "/cart" })
browser_snapshot()
Verify: Cart shows item, correct price
Step 3: Proceed to Checkout
browser_click({ element: "Checkout", ref: "[checkout-ref]" })
browser_snapshot()
Verify: Checkout form visible
Step 4: Fill Shipping
browser_fill_form({
fields: [
{ name: "Address", type: "textbox", ref: "[address-ref]", value: "123 Test St" },
{ name: "City", type: "textbox", ref: "[city-ref]", value: "Test City" },
{ name: "Zip", type: "textbox", ref: "[zip-ref]", value: "12345" }
]
})
browser_click({ element: "Continue", ref: "[continue-ref]" })
browser_snapshot()
Step 5: Payment
browser_fill_form({
fields: [
{ name: "Card Number", type: "textbox", ref: "[card-ref]", value: "4242424242424242" },
{ name: "Expiry", type: "textbox", ref: "[expiry-ref]", value: "12/25" },
{ name: "CVV", type: "textbox", ref: "[cvv-ref]", value: "123" }
]
})
browser_click({ element: "Pay Now", ref: "[pay-ref]" })
browser_wait_for({ text: "Order confirmed" })
browser_snapshot()
Verify: Order confirmation page
Step 6: Verify Order
browser_navigate({ url: "/orders" })
browser_snapshot()
Verify: Order appears in order history
Error Case Testing
Invalid Input Errors
Step 1: Navigate to form
Step 2: Fill with invalid data
Step 3: Submit
Step 4: Verify: Error messages displayed
Step 5: Verify: Form not submitted
Step 6: Verify: User can correct and retry
Network Error Simulation
Step 1: Start flow normally
Step 2: Introduce network issue (if possible)
Step 3: Attempt action
Step 4: Verify: Error handled gracefully
Step 5: Verify: User informed of issue
Step 6: Verify: Can retry action
Session Timeout
Step 1: Login
Step 2: Navigate to protected page
Step 3: Clear session (if possible)
Step 4: Attempt action
Step 5: Verify: Redirect to login
Step 6: Verify: Action can be completed after re-login
Output Format
Flow Test Results
# Flow Test Results
## Summary
- Total Flows: 8
- Passed: 7
- Failed: 1
- Skipped: 0
## Detailed Results
### Flow: User Registration
- Status: PASSED
- Duration: 12.5s
| Step | Action | Status | Notes |
|------|--------|--------|-------|
| 1 | Navigate to /register | OK | Form visible |
| 2 | Fill registration form | OK | All fields filled |
| 3 | Submit form | OK | No errors |
| 4 | Verify account | OK | Dashboard accessible |
| 5 | Verify can login | OK | Login successful |
### Flow: User Login
- Status: PASSED
- Duration: 5.2s
| Step | Action | Status | Notes |
|------|--------|--------|-------|
| 1 | Navigate to /login | OK | Form visible |
| 2 | Enter credentials | OK | Fields filled |
| 3 | Submit | OK | Redirect to dashboard |
| 4 | Verify session | OK | Protected pages accessible |
### Flow: Checkout
- Status: FAILED
- Duration: 18.7s
| Step | Action | Status | Notes |
|------|--------|--------|-------|
| 1 | Add to cart | OK | Item added |
| 2 | View cart | OK | Cart displayed |
| 3 | Proceed to checkout | OK | Form visible |
| 4 | Fill shipping | OK | Address saved |
| 5 | Payment | FAILED | Payment gateway timeout |
| 6 | Verify order | SKIPPED | Previous step failed |
Error Details:
- Location: Payment step
- Error: NetworkError - Payment gateway timeout after 30s
- Console: "Error: Payment processing failed"
## Error Cases Tested
### Registration - Duplicate Email
- Status: PASSED
- Verified: Error message shown
- Verified: Form not submitted
### Login - Invalid Password
- Status: PASSED
- Verified: Error message shown
- Verified: Still on login page
### Checkout - Empty Cart
- Status: PASSED
- Verified: Cannot proceed to checkout
- Verified: Message shown
## Recommendations
1. **Payment Timeout**: Increase gateway timeout or add retry logic
2. **Add Loading States**: Some actions lack visual feedback
3. **Error Recovery**: Consider saving cart state for failed checkouts
Best Practices
- Test Happy Path First - Ensure normal flow works
- Test Every Step - Don't skip intermediate states
- Verify State - Check data persists between steps
- Test Error Cases - Include failure scenarios
- Document Dependencies - Note flow prerequisites
- Check Side Effects - Emails, notifications, etc.
- Clean Up - Reset state between flow tests
- Capture Evidence - Take snapshots at each step
Readme
e2e-test-specialist
A Claude Code plugin for running large, resumable, database-driven E2E test suites with full Playwright MCP integration. Built for the long haul: 50+ phases, 1000+ steps, multi-month iterations, "round 35" fatigue.
Why a plugin? Markdown ledgers fall apart at scale: hand-edits collide, history grows unbounded, parallel runs are guesswork, crash recovery is manual. This plugin moves the plan into SQLite, checkpoints every step before it runs, and resumes from the last unfinished step automatically — across crashes, computer reboots, and Claude session resets.
Quickstart
# 1. Install the plugin into your Claude Code config (per CC plugin docs)
# 2. In a project directory:
/e2e-test-specialist:init # one-time
# 3. If you have an existing markdown plan:
/e2e-test-specialist:import path/to/your-ledger.md
# Otherwise, scan the codebase to bootstrap one:
/e2e-test-specialist:plan discover
# 4. Open a run and start working:
/e2e-test-specialist:start https://app.example.test --label "R-001"
/e2e-test-specialist:test --batch 50
# (computer reboots, Claude session ends, etc.)
/e2e-test-specialist:resume # picks up exactly where you stopped
/e2e-test-specialist:test # continues
What lives where
.e2e-testing/ (gitignored — contains credentials)
├── e2e-tests.sqlite SQLite DB, WAL mode, schema v1.4
├── config.json Tunable: heartbeat, retry, viewports, redaction
├── runs/R-NNN/screenshots/ Per-run artifacts
├── runs/_backups/ Auto-backups before destructive ops
└── logs/activity.log Append-only event log
Command index
| Lifecycle | Plan | Run | Triage |
|---|---|---|---|
/init | /import <ledger.md> | /start | /bugs list / open / fix |
/status | /export | /test [filters] | /memory add / list / search |
/repair | /plan discover / add / update / deprecate / drift | /resume | /screenshot (manual) |
/sites add / update / list | /restart | /report | |
/roles add / link-credential | /tag list / tests / bulk-tag |
Detailed help for each command lives in commands/<name>.md.
Core concepts
- Plan in DB, not in markdown. Phases → tests → steps + tags + directives
- credentials + apps + infrastructure + sites + roles all live in SQLite. The plan is queryable, diffable, and resilient to Claude resets.
- Every step is a checkpoint.
INSERT step_executions(status='in-progress')is committed before the action runs. If anything crashes, the row survives;crash-recovery.shfinds it;/resumecontinues from there. - Heartbeat after every tool call. Stale heartbeat → reaped to
crashed. Long-blocking actions spawn a background watcher so legitimate waits (apt locks, image transfers) don't false-positive. - Append-only by design. Tests never silently disappear; they get
deprecated_atset.step_executions,bugs,memories,screenshots, andtest_runsare fully append-only. - Tags drive selection.
--tag wireguardselects across phases. Auto-tags apply during/importfromschemas/tag-taxonomy.json; manual tags layer on top. - Parametrization is first-class.
tests.applies_to = ["APP-001", "SITE-003", "ROLE-admin"]runs the same procedure once per subject;action_template = "Navigate to https://{{subject.target_domain}}"renders per subject;step_executions.subject_idrecords which one ran. - Credentials are redacted at output time.
/report,/export, and/screenshotall pass throughe2e_redactso secrets in thecredentials.fieldsJSON never leak into ledger files or chat output.
Running the plugin's self-tests
bash tests/run-tests.sh
11 test cases covering: init layout, schema version, atomic ID allocation,
template rendering, redaction, parallel-write concurrency, session lifecycle
(start/heartbeat/reap), step checkpointing, the applies_to integrity
trigger, backup/restore, the SQL-injection linter, and import-fixture
round-trip.
SQL-injection linter
bash tests/lint-sql.sh
Sweeps every commands/*.md and scripts/*.sh for risky bash-into-SQL
interpolation patterns. All real interpolations must go through
e2e_sql_quote. Numeric / known-internal interpolations need an explicit
# lint-sql: numeric-safe or # lint-sql: internal-safe pragma comment.
Tuning points
Two scripts are designed to be edited per project:
scripts/retry-policy.sh— when should a failed step retry? Per error_kind- step_kind. Defaults are conservative.
scripts/directive-check.sh— what happens when an action matches a blocking directive? Defaults are hard-block + log violation.
The crash-detection threshold is crash_detection.heartbeat_stale_seconds in
config.json. Set above your longest legitimate single-step duration.
Schema
schemas/schema.sql is the canonical source. Highlights (v1.4.0):
- 27 tables — all v1.2 tables plus
lifecycle_hooks(v1.3), andtest_coverage_links,notifications,resource_ledger(v1.4). - 10 views — v1.2's seven plus
v_skip_rollup,v_latest_step_status,v_latest_test_status(all v1.4). - Migration scripts:
migrate-v1.0-to-v1.1.sh→migrate-v1.1-to-v1.2.sh→migrate-v1.2-to-v1.3.sh→migrate-v1.3-to-v1.4.sh./initdetects the existing version and runs the right chain.
Plugin / schema compat matrix
| Plugin version | Schema version | Notable additions |
|---|---|---|
| 2.0.0 | 1.2.0 | First DB-backed release |
| 2.1.0 | 1.2.0 | Hardened /test step 7 (ultrathink fix loop) |
| 2.2.0 | 1.3.0 | lifecycle_hooks table; /before-all, /after-all; R34/R35 default mode |
| 2.3.0 | 1.3.0 | /sessions, /failures, /pending, schema cheat sheet |
| 2.4.0 | 1.3.0 | /before-all, /after-all upsert wrappers |
| 2.5.0 | 1.3.0 | Pre-run briefing, /authorize, /fix-failures, strict skip discipline |
| 2.6.0 | 1.4.0 | skip_reason, fix_attempt_index, idempotent, affected_tests; test_coverage_links / notifications / resource_ledger tables; /doctor, /schema, /diff, /recommend, /skipped, /cost, /notify, /wizard; cascade circuit breaker + kill switch + --dry-run in autopilot |
| 2.7.0 | 1.4.0 | /reset — execute after-all teardown + reset run pointer (default), --clear-history (catalog kept, run history wiped), or --hard --ledger <path> (full re-init + re-import) |
Older plugin versions can run against older schemas, but newer commands
(e.g. /skipped) require the schema upgrade. /init migrates safely.
Authoring a markdown ledger
scripts/import-ledger.py recognizes these ## H2 sections (any subset):
## Directives— H3 entries becomedirectivesrows## VPS Infrastructure & Credentials— infra rows + credentials## Test App Matrix— apps rows (markdown table; columnapp= name)## Server Distribution Plan— additional infra + DO tokens## E2E Test Phases—### Phase N: Title, then**N.M Title**test groups, then numbered-list steps## Test Count Summary— updatesphases.expected_test_count## Test Results Log— historical runs + bugs + memories
Anything else under ## H2 is preserved as a memories row so nothing is
silently dropped. See tests/fixtures/mini-ledger.md for a minimal example.
Details
- Marketplace
- mwguerra/claude-code-plugins
- Source
- e2e-test-specialist
- Category
- Testing
- Keywords
- e2e, playwright, testing, browser, automation, end-to-end, sqlite, resumable, crash-recovery, checkpoint, tags, ledger, directives, credentials, memories
- Listed since
- Apr 7, 2026
More from mwguerra/claude-code-plugins
All 18- error-memoryv1.0.0
- filament-specialistv1.0.0
- laravel-filament-package-development-specialistv1.0.0
- obsidian-vaultv1.0.0
- post-developmentv1.0.0
- prd-builderv1.0.0
- reverb-specialistv1.0.0
- secretaryv1.0.0
- taskmanagerv1.0.0
- terminal-specialistv1.0.0
- test-specialistv1.0.0
- article-writerv1.0.0
- boardv1.0.0
- codev1.0.0
- docker-localv1.0.0
- docker-specialistv1.0.0
- docs-specialistv1.0.0
Similar to e2e-test-specialist
More Testing & QA
playwrightPluginTheBushidoCollective/han201 starsAdvanced Playwright skills for end-to-end testing, test architecture, and test automation best practices.
pwPluginalirezarezvani/claude-skills30.3K starsProduction-grade Playwright testing toolkit. 9 skills, 3 agents, 55 templates, plus optional (manually enabled) TestRail/BrowserStack integrations. Generate tes
e2e-runnerPluginrohitg00/awesome-claude-code-toolkit2.8K starsEnd-to-end test execution and recording for web applications
playwright-e2e-testingSkillbobmatnyc/claude-mpm-skills2.7K installsModern end-to-end testing with Playwright for cross-browser automation, auto-waiting, and a built-in test runner.
playwright-e2e-builderSkilldavila7/claude-code-templates245 installsInterview-driven Playwright E2E suite builder covering POM, auth state reuse, fixtures, visual regression, and CI sharding.
testingPlugingreyhaven-ai/claude-code-config31 starsComprehensive testing automation with Playwright visual regression, Chrome E2E testing, and frontend debugging tools