Skip to content
← All posts

How a screenshot test keeps the UI honest

The gallery photographs every component, so a restyle that breaks a control fails CI instead of a demo.

The screenshot gate

A component gallery renders every control and photographs it. A visual change that was not intended fails the build, and an accessibility sweep runs axe over each one so a control that loses its label is caught the moment it is typed.

It is unglamorous and it is why a restyle never silently breaks a button three screens away.