Component Vrt

Focus visual regression testing on ONE component instead of a whole page, so the diff is small enough to read and to hand to a model. Mounts a story from a Playwright component-testing gallery and screenshots only that component (`vlmkit check story`), then loops baseline → diff → fix → re-run to green. Includes copyable gallery reference implementations (vanilla / React / Vue) because Playwright ships no template for the gallery. Use when repairing or restyling a specific component, when a full-page diff is too noisy or cascades, or when a project wants per-component VRT baselines. Not for whole-page comparison (use vrt-visual-diff) or for generating browser tests from a spec (use spec-to-playwright).

mizchi e9cf0d4 8 files · 30.4 KB Updated

File contents

mizchi/vlmkit/tree/main/.claude/skills/component-vrt commit e9cf0d4ae8

Frequently asked questions

npx skillmds@latest add mizchi/component-vrt