test(briefwechsel): capture visual-regression baselines for the row layout #313
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Flagged by @tobiwendt + @saraholt in the round-2 review of PR #311:
PR #311 shipped
frontend/e2e/briefwechsel-rows.visual.spec.tswith the snapshot block gated onVISUAL=1. The structural test in the same file runs unconditionally, so the row layout is still covered in CI — but the pixel-level regression protection is idle until this one-time capture runs.Steps
Start a clean test environment locally (
docker compose up -d; backend running with admin seed + empty DB).Run once to generate all six baselines against a seeded bilateral pair:
Sanity-check the six generated PNGs in
frontend/e2e/briefwechsel-rows.visual.spec.ts-snapshots/:briefwechsel-mobile-light.png(375×812 light)briefwechsel-mobile-dark.png(375×812 dark)briefwechsel-tablet-light.png(768×1024 light)briefwechsel-tablet-dark.png(768×1024 dark)briefwechsel-desktop-light.png(1280×800 light)briefwechsel-desktop-dark.png(1280×800 dark)Each should show the seeded "Visual Sender-" ↔ "Visual Receiver-" correspondence with one row and a DistributionBar.
Commit the baselines.
Flip the
VISUALdefault totruein the spec (one-line change) so CI exercises the snapshot block by default:Open a PR against
mainwith both the baselines and the flip.Acceptance criteria
frontend/e2e/briefwechsel-rows.visual.spec.ts-snapshots/.VISUALdefault flipped so the snapshot block runs in CI without opt-in.References