From e2e
E2E testing workflow with test-first development rules. Covers new features (test-first), test modifications (progressive testing), and refactoring (iterative testing). Framework-agnostic with Playwright/Cypress/Jest examples. Keywords: e2e, testing, tdd, playwright, cypress.
How this skill is triggered — by the user, by Claude, or both
Slash command
/e2e:e2eThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Injects the E2E testing workflow context with structured rules for test-driven development. Uses classic agile terminology (user story, use-case, test case) and framework-agnostic commands that work with any testing framework.
Injects the E2E testing workflow context with structured rules for test-driven development. Uses classic agile terminology (user story, use-case, test case) and framework-agnostic commands that work with any testing framework.
/e2e - Load E2E testing context and rules/e2e new-feature - Start new feature workflow (Rule 1: Test-First)/e2e test-change - Start test modification workflow (Rule 2: Progressive Testing)/e2e refactor - Start refactoring workflow (Rule 3: Iterative Testing)/e2e help - Show testing rules quick reference$ARGUMENTS
$ARGUMENTS contains "new-feature":Execute Rule 1: Test-First Development
Ask for user story:
Define use-cases:
Create TodoWrite list:
User Story: [story name]
- [ ] Use-Case: [scenario 1]
- [ ] Test Case: [test 1.1]
- [ ] Test Case: [test 1.2]
- [ ] Use-Case: [scenario 2]
- [ ] Test Case: [test 2.1]
- [ ] Implementation
- [ ] Run component test suite
- [ ] Run full app test suite
Guide through workflow:
$ARGUMENTS contains "test-change":Execute Rule 2: Progressive Testing
Ask which test:
Create TodoWrite list:
Test Change: [test name]
- [ ] Modify test case
- [ ] Run single test
- [ ] Run component test suite
- [ ] Run full app test suite
Guide through progressive workflow:
$ARGUMENTS contains "refactor":Execute Rule 3: Iterative Testing
Ask which component:
Identify affected tests:
Create TodoWrite list:
Refactor: [component name]
- [ ] Use-Case: [affected feature 1]
- [ ] Test Case: [test 1.1] - run until green
- [ ] Test Case: [test 1.2] - run until green
- [ ] Use-Case: [affected feature 2]
- [ ] Test Case: [test 2.1] - run until green
- [ ] Run full app test suite
Guide through iterative workflow:
$ARGUMENTS contains "help":Display the Testing Rules Quick Reference section.
$ARGUMENTS is empty or other:Load the E2E testing context (default behavior - see rules below).
When you build something new, create e2e tests in advance before you start with the feature implementation.
Workflow:
Rationale: Tests document expected behavior before code exists. This ensures you understand requirements and have a definition of "done" before writing code.
When you change something inside a test, run only this test. After that, run the component test suite. Only when it does not fail, run the whole app suite.
Workflow:
Levels:
Single Test → Component Suite → App Suite
↓ ↓ ↓
Fastest Moderate Complete
Rationale: Avoid wasting time running the full suite for every small change. Progressive testing catches issues early while maintaining confidence.
When you refactor a component, run only the affected feature tests until all features are completely refactored and working. Then run the whole app test suite.
Workflow:
Rationale: Keep feedback loop tight during refactoring. Don't run unrelated tests that can't fail from your changes.
| Term | Definition | Example |
|---|---|---|
| User Story | Feature from user perspective | "As a user, I can log in to my account" |
| Use-Case | Specific scenario within a story | "Valid credentials", "Invalid password" |
| Test Case | Individual test implementation | test_login_with_valid_credentials() |
User Story
├── Use-Case 1
│ ├── Test Case 1.1
│ └── Test Case 1.2
└── Use-Case 2
└── Test Case 2.1
The skill uses TodoWrite to track testing progress. Each workflow creates a structured todo list:
User Story: User can reset password
├── [ ] Use-Case: Request reset via email
│ ├── [ ] Test Case: valid email sends reset link
│ └── [ ] Test Case: invalid email shows error
├── [ ] Use-Case: Complete reset with token
│ ├── [ ] Test Case: valid token allows new password
│ └── [ ] Test Case: expired token shows error
├── [ ] Implementation
├── [ ] Component test suite
└── [ ] Full app test suite
pending - Not startedin_progress - Currently working oncompleted - Finished and verifiedThe skill uses generic commands. Replace with your framework's equivalents:
| Generic Command | Playwright | Cypress | Jest |
|---|---|---|---|
| Run single test | npx playwright test [file] | npx cypress run --spec [file] | npm test -- [file] |
| Run component suite | npx playwright test [folder] | npx cypress run --spec [folder]/** | npm test -- [folder] |
| Run full app suite | npx playwright test | npx cypress run | npm test |
When this skill is invoked:
User: /e2e
Claude:
E2E testing context loaded. I'm now aware of:
- Rule 1: Test-First (new features - write tests before implementation)
- Rule 2: Progressive (test changes - single → component → app)
- Rule 3: Iterative (refactoring - affected features → app suite)
- Terminology: User Story → Use-Case → Test Case
Which workflow do you need?
- `/e2e new-feature` - Start test-first development
- `/e2e test-change` - Modify existing tests
- `/e2e refactor` - Refactor with iterative testing
User: /e2e new-feature
Claude:
Starting Rule 1: Test-First Development
What user story are we implementing?
(e.g., "As a user, I can log in to my account")
User: As a user, I can reset my password
Claude:
User Story: Password Reset
What use-cases should this feature cover?
User: Email request, token validation, password update
Claude:
Creating todo list for: User Story - Password Reset
[TodoWrite:
- Use-Case: Email request
- Test Case: valid email sends reset link
- Test Case: invalid email shows error
- Use-Case: Token validation
- Test Case: valid token proceeds
- Test Case: expired token rejected
- Use-Case: Password update
- Test Case: new password saved
- Implementation
- Component suite
- Full app suite]
Let's write the first test case: "valid email sends reset link"
User: /e2e test-change
Claude:
Starting Rule 2: Progressive Testing
Which test case are you modifying?
User: login_with_valid_credentials test
Claude:
[TodoWrite:
- Modify test: login_with_valid_credentials [in_progress]
- Run single test
- Run auth component suite
- Run full app suite]
Make your changes to the test. When ready, I'll guide you through:
1. Run single test first
2. Then component suite
3. Finally full app suite
User: /e2e refactor
Claude:
Starting Rule 3: Iterative Testing
Which component are you refactoring?
User: The authentication service
Claude:
What use-cases/features are affected by this refactoring?
User: Login, logout, password reset, session management
Claude:
[TodoWrite:
- Use-Case: Login [in_progress]
- run until green
- Use-Case: Logout [pending]
- Use-Case: Password reset [pending]
- Use-Case: Session management [pending]
- Full app suite [blocked]]
Refactoring: Authentication Service
Start with Login tests. Run them after each refactoring change.
Only move to Logout once Login is fully green.
Full app suite runs ONLY after all features pass.
The E2E test results can be visualized in the application dashboard via the E2E Results Service.
Endpoint: GET /api/health/e2e
Returns structured test results:
{
"available": true,
"status": "success" | "warning" | "error",
"summary": {
"total": 69,
"passed": 67,
"failed": 0,
"skipped": 2,
"duration": 45.2
},
"byBrowser": {
"chromium": { "passed": 45, "failed": 0, "skipped": 0 },
"firefox": { "passed": 22, "failed": 0, "skipped": 2 }
},
"timestamp": "2026-01-20T12:00:00Z"
}
| Widget | Purpose |
|---|---|
| Hero | Full-width summary at dashboard top |
| Card | Regular dashboard item with browser breakdown |
| Sidebar | Collapsible panel with spec details |
/e2e dashboardWhen invoked with "dashboard" argument:
dist/.playwright/apps/home-e2e/results.xml)nx e2e home-e2eThe fixture-driven test environment is the standard E2E workflow for the Teslasoft vault. Fixtures are declarative test specs that run against an isolated Docker stack with no production vault dependency.
.worktrees/e2e-fixture/ — minimal PARA skeleton (11 directories)postgres-test:5433, drone-test:3837, vault-mcp-test:3938docker-compose.test.yml (no production vault dependency)coordination/tests/fixtures/*.fixture.mdcoordination/tests/baseline-report.json| Command | Purpose |
|---|---|
pnpm docker:test | Start test containers |
pnpm test:fixtures | Run all 41 fixtures against fixture worktree |
pnpm docker:test:down | Stop and remove test containers |
pnpm test:fixtures:ci | CI mode — fail on regression |
pnpm docker:test # Start isolated test containers
pnpm test:fixtures # Run all fixtures (~500s)
pnpm docker:test:down # Clean up when done
| Gate | When | Behavior |
|---|---|---|
| Project branches | During development | Fixtures run but DON'T block. Failures visible, parallel work continues. |
| Merge to development | Integration | Mandatory gate, non-blocking (advisory warnings) |
| Merge to main/master | Production | BLOCKING gate. Failures stop the merge. |
Rationale: Flexibility during development, strict production safety net.
| Test Type | Use For | Command |
|---|---|---|
| Fixture tests | Integration, E2E, pipeline validation | pnpm test:fixtures |
| Unit tests | Isolated function logic, pure transforms | Framework-specific (pnpm test, bun test) |
| Cypress | Visual rendering, screenshots, video (LR-E2E-002) | pnpm cypress:run |
Fixture tests are the primary verification mechanism for submodule changes (drone,
vault-mcp, harness-telemetry). Always run pnpm test:fixtures after modifying
submodule code.
/teslasoft - Teslasoft business context and portfolio goals/webstatic - WebStatic PHP/TypeScript CMS framework context/repomix - Repomix tool for packing codebases into AI-friendly formatse2e:vault-testing — Fixture worktree architecture and PARA test patternse2e:fixture-management — Fixture runner, batching, baseline reportsLast Updated: 2026-04-12 Version: 1.4.0 Author: Christian Kusmanow / Claude Scope: Global Changelog:
npx claudepluginhub teslasoft-de/claude-skills-marketplace --plugin e2eCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.