mix attached_dashboard.screenshots (AttachedDashboard v0.1.0)

Copy Markdown View Source

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:

  • chromedriver on 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.