mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 19:56:53 +00:00
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>