E2E tests stay small and rare
Two hundred browser tests run two hours each release, then three fail randomly with no code changed.
They feel convincing because they mimic real clicks, yet the suite grows slow and ignored.
I keep many unit tests below, some integration tests midstream, and very few E2E tests.
CircleCI summarizes the pyramid with clear ratios as seventy unit, twenty integration, and ten E2E.
I reserve E2E tests for login, payment, and checkout so releases stay fast and calm.
If Small unit tests give fast feedback grows thick and Integration tests catch contract mismatch holds, E2E stays light.
I choose this shape whenever daily speed matters without losing release confidence.