sanity-visual-regression
Installation
SKILL.md
Sanity Visual Regression Testing
Visual regression runs on Chromatic, wired via .github/workflows/chromatic.yml. Three snapshot sources, one Chromatic project each:
| Source | Chromatic project | Repo secret | Status |
|---|---|---|---|
dev/storybook stories |
"sanity studio" | CHROMATIC_PROJECT_TOKEN_STORYBOOK |
Active |
| Vitest browser tests (in place) | "sanity studio vitest" | CHROMATIC_PROJECT_TOKEN_VITEST |
Active |
Playwright e2e takeSnapshot() |
"sanity studio playwright" | CHROMATIC_PROJECT_TOKEN_E2E |
Active, curated opt-in |
All checks are non-gating during burn-in (exitZeroOnChanges); merges to main auto-accept
baselines. Review diffs on the Chromatic build linked from the PR check.
Which source owns a state
Each source owns a disjoint set of states. Decide by how the state is reached, and never move a state between sources: