Web apps & software

What is end-to-end (E2E) testing?

End-to-end testing runs a complete user journey through the real application, for example signing in, booking a ride and seeing the confirmation, using an automated browser or device to click and type as a person would.

Why do it

It is the closest automated check to what customers experience. It finds problems no smaller test sees: a button hidden behind a cookie banner, a redirect loop after login, or a front end calling an API route that was renamed.

Tools

Playwright, Cypress and Selenium drive browsers; Appium, Maestro and Detox handle mobile apps. Many run headless in a CI pipeline and save screenshots or videos of failures.

The flakiness problem

E2E tests are slow and sometimes fail for reasons unrelated to the code: timing, a slow test server, leftover data. Fixes include waiting for visible conditions instead of fixed delays, using stable test ids on elements and creating test data through an API instead of clicking through forms.

What to cover

Pick the handful of journeys that make money or would be disastrous if broken, such as sign-up, checkout and password reset. Leave detail to cheaper tests.

Questions, answered

A small set, typically dozens, covering critical paths. More than that become slow and costly to maintain.

As a read-only smoke check, sometimes. Never run tests that create real orders or charges on live data.

By the Stegnor team · Updated