# Visual vs functional regression testing

> Compare a screenshot with an assertion about an exported CSV. Check for a clipped button and an unexpected record using evidence suited to each failure.

Source: https://cueapril.com/compare/visual-vs-functional-regression-testing
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Did the page layout move, or did it stop producing the correct result?

Use visual regression tests for layout, clipping and appearance under defined rendering conditions. Use functional assertions for what the application does, including which records it writes or downloads. Combine them on critical screens where both appearance and outcome can independently prevent a customer from finishing the job.

Separate a layout change from a wrong export. Use a stable screenshot baseline for appearance and parse the download to verify the customer outcome.

Cue April editorial assessment. The sources identify documented capabilities. Suggested pilot checks are evaluation criteria.

## Change the layout and the export separately

On a filtered order page, move the Export button below the list while keeping it usable. A screenshot comparison may flag that change. Restore the layout and change the export to include a closed order. The screen could look identical while the file is wrong. Read the CSV and compare the IDs with the fixture to reveal that defect.

Visual vs. functional regression testing

| Observed change | Visual comparison | Functional assertion |
| --- | --- | --- |
| Button clipped at narrow width | Shows where the control falls outside its container. | Exercise whether the user can actually operate it. |
| Expected redesign | Reviewer approves a new baseline after inspection. | Existing export contents should remain correct. |
| Extra record in CSV | Rendered screen may remain identical. | Parse the download and compare exact IDs. |
| Font varies between runners | Investigate rendering consistency before acceptance. | A data check can continue independently. |

## Make visual differences reviewable

Fix the browser, viewport, operating environment and fixture used for the baseline. Stabilise clocks, animations and variable content when they are outside the requirement. Ask a reviewer to accept intentional visual changes. Keep an unexpected file difference as a functional finding with its expected rows even if every screenshot matches.

## Primary documentation

- [Playwright screenshot comparisons](https://playwright.dev/docs/test-snapshots)
- [Playwright download events](https://playwright.dev/docs/downloads)

By Cue April. Updated 2026-12-01.

## Related

- [Testing comparisons](https://cueapril.com/compare): Compare testing tools and methods against a release decision. Inspect the required evidence, maintenance work and checks each approach can provide.
- [AI testing tools](https://cueapril.com/guides/ai-testing-tools): Compare TestRail, Playwright Test Agents, mabl and Cue April by the work each supports. Use one order export to see what your team could keep and rerun.
- [Playwright testing](https://cueapril.com/testing/playwright-testing): An AI testing agent runs your approved Playwright tests and keeps the results, source identity and gaps. Review accessibility scans alongside journeys.
