Skip to content

Document the visual regression screenshot plan - #441

Merged
cycomachead merged 1 commit into
mainfrom
visual-regression-plan
Nov 27, 2026
Merged

cycomachead merged 1 commit into
mainfrom
visual-regression-plan

Conversation

@cycomachead

@cycomachead cycomachead commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds docs/visual-regression.md: a plan for catching unintended UI changes by screenshotting pages during the feature specs and showing the differences on pull requests. The motivation is a safety net for front-end upgrades (Dart Sass, Bootstrap 3 → 5).

Docs only. The capture hook it describes is in #442.

What's in the doc

  • Route coverage today, measured by logging every controller action hit during the feature, cucumber and controller/request suites: of 166 GET actions, 105 are hit by a browser spec, 23 only by controller/request specs, and 38 by nothing. The uncovered pages are listed.
  • Phase 1: the capture hook and how it names and takes screenshots.
  • Phase 2: sources of run-to-run noise and which are already pinned.
  • Where it stands: results from two local runs (405 of about 485 images identical; 10–11 of 155 examples fail under Chrome in screenshot mode).
  • Phase 3: three options for showing diffs on PRs (a review service, committed baselines, or self-hosted).
  • Phase 4: adding "visit and render" specs for uncovered pages.

🤖 Generated with Claude Code

Records which routes the browser specs cover today, and a phased plan
for screenshotting pages during feature specs and showing the diffs on
pull requests. The capture hook it describes is a separate change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@cycomachead
cycomachead merged commit 84cb132 into main Nov 27, 2026
16 checks passed
@cycomachead
cycomachead deleted the visual-regression-plan branch November 27, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant