Docs/Steps

Visual Diff

visual-diff captures a screenshot and compares it to a stored baseline. On the first run the baseline is created; subsequent runs fail if the pixel difference exceeds the threshold.

yaml
- visual-diff:
    name: dashboard-empty-state
    element: the dashboard
    threshold: 0.01
Scope visual diffs to a specific element rather than the full page. Whole-page diffs fail on any cosmetic change, which trains teams to ignore the signal.