e2e-testing
Installation
SKILL.md
End-to-End Testing
Automated end-to-end (E2E) browser tests verify that integrated application subsystems (frontend, backend, database, external APIs) deliver the intended user experience in real browsers.
This skill is the reference for writing, maintaining, running, and diagnosing resilient browser tests with modern frameworks (Playwright, Cypress) without flakiness or maintenance nightmares.
The Five E2E Invariants
Every automated browser test must uphold these five invariants:
1. Scope: Critical User Journeys (CUJ) Only
Do not invert the testing pyramid into an ice-cream cone. Edge cases, input boundary validations, and detailed matrix variations belong to unit and integration tests at the code seam (see the tdd skill). E2E browser tests verify only high-value, multi-step critical user journeys:
- User signup, email verification, and workspace creation.
- Core checkout, payment, and subscription transitions.
- Critical workflow handoffs (e.g. upload dataset, trigger async export, download verified file).