Visual regression testing
Compare today's screens with approved pictures, cut the false alarms, and keep the human decision about which changes are real.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a spot-the-difference puzzle between yesterday's page and today's. You get two pictures side by side. Circles mark where they differ. The puzzle finds the differences for you. It cannot tell you which ones matter.
Daily List is a to-do list app. Leo changes the style of the buttons. Tom wants to know if anything else on the home screen moved. He saves a picture of the screen from yesterday. Today the tool takes a new picture and puts circles around the differences.
The new button colour is circled. That is on purpose. But the list title is circled too. It has moved down a little. Nobody planned that. Tom sends it back to Leo.
This is visual : comparing today's screens with approved pictures to catch changes that nobody meant to make.
The picture has a limit. The puzzle always has the same two pictures. A real screen can look a little different on each run, even when nothing has changed.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Letting a tool find the differences between approved and new pictures, while a person decides which ones matter.
- Save the baseline
- Take a new picture
- Look at the circles
- Approve or report
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Two pictures side by side | The baseline and the new screenshot |
| Circles round the differences | The marked dots |
| The player who decides | The reviewer who approves or reports |
| A smudge on the paper | Rendering noise |
WHERE THIS PICTURE STOPS
- The puzzle has two fixed pictures. A real screen can differ a little each run.
- A puzzle always has a right answer. A visual change may be right or wrong.
- The puzzle shows differences but not their meaning.
HOOK
The tool circles, the person decides.
REMEMBER IT THIS WAY
A story beat: one picture-line that carries the order or the cause.
Leo restyles the buttons, the tool circles them, and Tom decides the new colour is wanted.
| In the trick | What it stands for |
|---|---|
| Circled | the new button colour is circled |
| Decides | a person decides which differences matter |
A circle may also hide a real fault, so each one still needs a look.
TELL A FRIEND
A spot-the-difference puzzle. The tool circles the differences, and the person decides which matter.
OFTEN MIXED UP WITH Visual and layout testing. The layout lesson looks at screens by eye. This lesson asks a tool to compare them every time.
PRACTISE AND KEEP
Sources for this topic — 3 sources
- Market practice
Visual comparisons (Playwright documentation) ↗ — Microsoft · A screenshot is compared with a saved baseline; options include a per-pixel colour threshold, maxDiffPixels and maxDiffPixelRatio (search excerpt, page not opened)
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
Code reviews of visual changes (Applitools Eyes documentation) ↗ — Applitools · Intended differences are approved and approval updates the baseline; unintended differences are fixed in code (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Responsive visual regression checklist (Sizzy blog) ↗ — Sizzy · A checklist of responsive visual regression checks at several screen sizes (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.