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 Updated 419 repo stars
The same web page on a phone, a tablet and a desktop monitor; a magnifying glass over the desktop finds overlapping text outlined in red, while a robot and a pe

File contents

mizchi/vlmkit commit e9cf0d4ae8

Frequently asked questions

npx get-skill add mizchi/component-vrt