The E2E test launches the real browser, navigates a real URL, interacts as a user, and asserts on the resulting page plus any observable side effects (email sent, record created, payment settled).
graph TD T[E2E test runner<br/>Playwright, Cypress, Selenium] --> B[Real browser<br/>headless or headful] B --> F[Real frontend] F --> A[Real backend API] A --> D[(Real database)] A --> X[Real external services<br/>payment, email, SMS] D --> S[Assert on final state] X --> S style B fill:#E8F5E9 style D fill:#E8F5E9 style S fill:#E8F5E9
Three principles define a healthy E2E suite. Few and critical: cover the flows whose failure costs revenue, not every screen. Realistic: run against a staging environment that mirrors production (same database schema, same external service sandboxes). Deterministic: seed the data, freeze the clock, isolate per test — flakiness in E2E is almost always the test environment, not the code.