Generates PNG screenshots of every dashboard page into docs/screenshots/.
Boots a self-contained Phoenix endpoint against an in-memory SQLite repo, seeds deterministic fixtures, then drives a Chromium-based browser via Wallaby.
Manual task — not wired into CI. Run locally whenever the UI changes and commit the updated PNGs.
mix attached_dashboard.screenshots(The task forces MIX_ENV=screenshots via preferred_envs, so you do not
need to set it manually.)
Requires:
chromedriveron PATH (provided by the Nix flake)- A Chromium-based browser on the host — Helium, Chrome, Chromium,
Brave, or Arc. Auto-detected, or set
CHROME_BINARY=/path/to/binary.
Everything screenshot-specific (Endpoint, Router, Repo, seed data, browser config) lives in this file — the test suite is untouched.