Skip to content
Testing·Intermediate·Conceptual·1 min read

What does visual regression testing catch that assertion-based tests miss?

Short interview answer

Appearance and layout: spacing, alignment, color, font rendering, unintended reflow or wrapping, and overlap. An assertion test confirms an element exists with certain text; it says nothing about whether the element looks right or shifted four pixels.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Visual and snapshot testing

Related questions