visual regression testing

Testing that takes screenshots of components and compares them pixel by pixel with approved baseline images to catch unintended visual changes.

In more detail

DOM assertions cannot see a clipped label or a shifted icon; screenshots can. When a difference exceeds the allowed threshold the test fails and shows a diff image highlighting changed pixels. Intended changes are accepted by updating the baseline, which reviewers approve in the pull request.

Related terms

Taught in

References