Files
computer-playbook/scripts/tests/e2e
kevinveenbirkenbachandClaude Opus 5.5 e20b4b7f11 feat(design): capture single gallery views and check the plain side
The before/after gallery of a role had three gaps that cost a full
rerun or produced a wrong "before" screenshot without a failure:

- A view behind a redirect or a hash route kept the injected snippets
  on its plain side, because neither passes page.route(). The helper
  now loads such a document once more by the URL it ended on and fails
  the view when the plain side still carries the snippets.
- A state that only exists with the injected snippets had no plain
  side to capture. A view marked `afterOnly: true` skips it.
- Looking at one view meant a temporary test or the whole gallery.
  `make design-gallery app=<role> views=a,b` runs the gallery test
  alone, captures only the named views and adds them to the existing
  screenshots.

The view names travel as PLAYWRIGHT_GALLERY_VIEWS into the Playwright
container. The name stays out of the INFINITO_ registry on purpose: it
is a call parameter, and a default in .env would silently narrow every
later gallery run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 08:55:40 +02:00
..
…