WarUI

Visual Regression Testing

GRID-A30-F15P1baselinePlanned

A pixel and DOM-snapshot regression suite for themes, densities and states, with a docs viewer comparing baseline against current output. It prevents unintended visual changes and lets consumers set up the same approach.

Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A baseline/current/diff slider for the selected scenario.

Expected behavior

An intentionally modified scenario shows highlighted diff regions. Unchanged scenarios report zero diff.

Planned API surface

visual scenario manifestscreenshot stabilisation (disable animations, fixed fonts)diff threshold

Acceptance criteria

  • Screenshots are stable across repeated runs (no flakes in 20 consecutive runs) (pending)
  • Animations and caret blinking are disabled during capture (pending)
  • Baseline updates require an explicit approval step (pending)
  • Scenarios cover every theme and density (pending)