Visual regression testing compares a screenshot with a baseline under the same conditions. It catches layout shifts, clipping, and missing elements that functional assertions can miss.
The demo slides between baseline and current layouts to expose a small offset. Fix fonts, viewport, time, and data to avoid noisy differences.
When to use
Use it after design system or responsive layout changes to catch visible regressions.