End-to-end testing with Playwright (or similar) — critical user journeys only, web-first assertions, role-based locators, test isolation with seeded accounts, network mocking boundaries, traces and videos on failure, sharding, accessibility checks in flows. Use for browser E2E suites (E2E, Playwright, end-to-end, user journey, UI automation).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of E2e Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-e2e-testing)
---
name: e2e-testing
description: End-to-end testing with Playwright (or similar) — critical user journeys only, web-first assertions, role-based locators, test isolation with seeded accounts, network mocking boundaries, traces and videos on failure, sharding, accessibility checks in flows. Use for browser E2E suites (E2E, Playwright, end-to-end, user journey, UI automation).
metadata:
category: quality
---
# End-to-end testing
## Purpose
Verify critical user journeys in a real browser reliably.
**Use when:** key journeys and release confidence.
**Not for:** exhaustive logic testing (use lower levels).
## Inputs
- Critical journeys, test environment.
## Outputs
- E2E specs, CI job, failure artifacts.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "end-to-end testing"` for prior decisions, patterns and anti-patterns.
- [Testing standard](../../../standards/testing.md)
## Steps
1. **Select.** Pick a small set of critical journeys.
Done when each spec maps to a journey.
2. **Locate.** Role and label locators; no CSS chains.
Done when locators resilient.
3. **Isolate.** Seeded accounts per test via API.
Done when tests run in parallel.
4. **Diagnose.** Traces on failure; retries reported, not hidden.
Done when failures debuggable.
## Best practices
- Set up state via API, verify via UI.
- Add axe checks to key pages.
## Common mistakes
- Testing everything via E2E.
- Fixed waits.
## Example
Checkout journey spec: seeded cart via API, pay with test card, assert order confirmation by role.
## Reusable prompt
```text
Apply the End-to-end testing skill (.agents/skills/e2e-testing/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Write E2E specs for the critical journeys with resilient locators, isolation and failure diagnostics.
Return: E2E specs, CI job, failure artifacts..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```