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.
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.
| 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.