
What Deserves a Visual Test
A selection framework for visual test coverage: blast radius, the real per-test cost ledger, the over-snapshotting failure mode, and when retiring a test is the right call.
TL;DR: Visual test coverage is a deliberate selection, not a default applied to every page. The question worth asking is not whether a surface could break visually — nearly anything could — but whether the damage from that break would justify the standing cost of watching for it. Coverage earns its place through blast radius, gets weighed against a real per-test cost ledger, and gets retired when it stops paying rent.
Coverage is a selection, not a default
Snapshotting every page and every component feels rigorous in the moment a suite is first built. It sets up a structural problem, because every test added to a visual suite is a standing commitment for as long as it stays in the suite: runtime on every run, baseline churn every time the covered surface legitimately changes, and a claim on the reviewer attention needed to judge each diff.
The selection question worth asking is not "could this surface break visually" — nearly anything could, given the right combination of a CSS change and an unlucky cascade interaction. The question that actually discriminates is "if this broke visually, would the damage justify the standing cost of watching it." A settings page nobody screenshots and a checkout flow that drives revenue can both break; only one of them earns the ongoing cost of a test that watches for it continuously.
A visual test earns its place in the suite by guarding what functional assertions leave unnamed. Unit and integration tests verify behavior — did the right data load, did the right function fire. A browser-level assertion can check a computed style it names (Playwright's toHaveCSS, for example, as of November 2026), but it checks only the properties someone chose to assert on; layout, spacing, theming, and visual composition outside those assertions go unchecked. A visual test can catch a margin collapse or a token that silently stopped applying even when no one wrote an assertion naming that property.
Surfaces with high visual blast radius
Shared layout primitives and navigation chrome carry a high blast radius, because a regression in the primitive does not stay contained — it can repeat on every page that composes it. One broken header component is, functionally, a broken header on every page that renders it.
Design-system components consumed across the product carry a related concentration argument, taken to working depth in this topic's design-system-specific coverage rather than here: the more places a component is reused, the more a silent regression in it multiplies across the surface area of the whole product.
Revenue- and trust-critical pages — checkout, pricing, sign-up — earn coverage for a different reason than concentration: a visible defect on these pages can carry a direct cost even when the underlying functionality still technically works. A misaligned price or a broken layout on a payment step can erode trust and completion even when the transaction itself would have succeeded.
Surfaces most exposed to non-local change are the fourth category worth naming: pages and components most at risk from a token update, a global stylesheet refactor, or a dependency upgrade that touches shared styling infrastructure. These surfaces did not change intentionally — they changed because something upstream of them did, which is the kind of regression a developer making the upstream change may not notice on their own.
The per-test cost ledger
Every visual test carries three real costs, and none of them is free just because the test itself is easy to write. Runtime is the first: visual tests render real UI — whole pages or individual components — in real browsers, which is far slower than a unit assertion, and that cost multiplies across every axis of the test matrix a suite runs against.
Baseline maintenance is the second cost, and it is not a one-time setup fee. Every intended redesign of a covered surface produces a baseline update someone has to generate and someone else has to review — a cost that recurs indefinitely for as long as the test exists and the surface keeps evolving.
Review attention is the third cost, and one that is easy to leave out of the accounting. Every surface under coverage adds diffs a human has to judge, and judgment quality can slip as the volume of diffs a reviewer faces in a single sitting grows — a reviewer skimming a long run of screenshots may bring less scrutiny to the last than to the first.
The ledger is per-surface, not a single global number applied uniformly across the suite. A high-churn marketing page that gets redesigned frequently and a stable internal settings form that has not changed in a year have entirely different cost-benefit shapes, even if both are, in principle, coverable.
The over-snapshotting failure mode
The observable symptoms of a suite that snapshotted too much arrive gradually and are easy to miss individually: build times increasingly dominated by visual-suite runtime, baseline-update pull requests that pile up faster than anyone can carefully review them, and reviewers who start approving diffs in bulk because the volume has outpaced their capacity to look closely at each one.
Rubber-stamping is where this failure mode can end up, and it is what makes the pattern damaging. A suite that has cried wolf on every incidental copy change can train its reviewers to stop looking carefully — which means it can stop catching the layout break it was originally built to catch, even though the test itself still technically runs and technically fails on real regressions. The suite can become coverage in name only.
Volume dilutes signal especially for a team's newest members, who have not yet built the tacit sense of which baselines are load-bearing and which are incidental. A large, undifferentiated pile of visual tests gives a new reviewer little to go on in telling which diff actually matters without asking someone who has been on the team long enough to know.
Retiring and resizing coverage
Deleting a visual test is legitimate ongoing maintenance, not lost work or an admission that the original test was a mistake. Coverage should track what the product currently risks, not what it once risked at some earlier point in its history — a surface that mattered enough to cover two years ago is not automatically still worth watching today.
Concrete signals point to retirement rather than leaving a test to linger indefinitely: a surface that has been redesigned out of existence entirely, a baseline that churns on nearly every run while catching zero real regressions in that same period, or a page that is now covered at a better level of granularity somewhere else in the suite.
Selection is worth revisiting at the level of the whole suite whenever the test matrix or the range of states covered grows, since multiplying axes over an unpruned test list multiplies the entire cost ledger rather than adding a small increment to it. Deciding what to cover is not a one-time exercise performed when a suite is first built — it is a standing responsibility that comes with owning the suite at all.