Visual testing
Compare screenshots against a baseline to catch layout changes.
Turn it on
Set Screenshot Analysis in the suite's Display Options, or override it per test in Test Settings under Miscellaneous.
Baselines
When a test has no baseline, the screenshot from its first passing run becomes the baseline. To replace it, open the test and select Set current as baseline. A failing run cannot be used as the baseline.
Later runs are compared against the baseline using structural similarity, which tolerates small rendering noise better than a pixel diff.
Threshold
A run fails the visual check when the difference is above the Comparison Threshold (%). The default is 10 percent. If the comparison cannot be made, the check fails.
Targeting and exclusions
Set Screenshot Target Element (CSS selector) to compare only one element. Set Exclusion CSS Selectors to hide dynamic areas such as dates, ads or avatars before the screenshot is taken.