Skip to main content

Visual Testing with Applitools: Choose What a Screenshot Should Prove

Use visual checkpoints with deliberate match levels, stable baselines, and human review of meaningful changes.

2 min read
Visual Testing with Applitools: Choose What a Screenshot Should Prove
On this page

A functional test can complete checkout while the confirmation page is clipped on a phone. Visual checkpoints add a second question: does the rendered interface match the approved design at this viewport and state? They complement outcome assertions and accessibility checks.

Choose the comparison deliberately

Applitools provides match levels for different expectations. Strict considers visual content and layout changes; Layout emphasizes structure when content varies. Regions can use different match levels. Choose them around the requirement, rather than making the whole page permissive to get a green result.

Build a useful checkpoint

  • Set the viewport, fixture data, locale, theme, and application state.
  • Wait for the actual content, fonts, and images needed by the checkpoint.
  • Compare against an approved baseline with a stable test name.
  • Review the diff and any available DOM evidence before accepting an update.

Masking a timestamp can remove irrelevant noise. Masking a total, error message, or primary button may hide the exact defect the test should detect. Document why each exclusion exists and keep separate assertions for required dynamic values.

Review changes as product decisions

A changed screenshot is a review item, not automatically a bug. Confirm that the expected design change appears at the intended breakpoints and that it has not clipped adjacent content. DOM change information can help investigation, but it does not establish a single root cause by itself.

Measure checkpoint runtime and review effort on your own browser matrix. This article does not promise a fixed speedup or a particular number of environments per minute. Baseline ownership and repeatable state usually matter more than the number of screenshots.

Applitools guide to visual assertions and region match levels.

Dhiraj Das

About the Author

Dhiraj Das is an Automation Consultant with over a decade of experience building systems that expose failures, reduce flakiness, and make complex workflows repeatable. He applies that discipline to AI-agent validation, LLM testing, and postmortems.

He shares small open source utilities from real automation work, including: waitless (flaky tests), sb-stealth-wrapper (bot detection), selenium-teleport (state persistence), selenium-chatbot-test (AI chatbot testing), lumos-shadowdom (Shadow DOM), and visual-guard (visual regression).

Share this article: