What problem does it solve? Visual snapshot tests for UI components fail in confusing ways: states like hover and overlays never reach the frame, random data and native controls drift between runs, and fallen snapshot runs are hard to attribute to your own change versus the environment. This Skill encodes the patterns for writing snapshot-ready stories, keeping frames deterministic, and sorting out divergences without blindly re-taking references. ## Core Features & Use Cases - Snapshot-ready stories: Capture hover states via a snapshotHover parameter, open overlays in play with a snapshotViewport frame, and reach states that inputs cannot set. - Deterministic frames: Seed random data, inline images as bytes, pin timezone and browser language, and drive skeleton animations to completion before the shot. - Story sweep before references: Run a sweep over all stories checking the showing area and console errors (NG0201, NG0950) before taking references for the first time. - Divergence triage: Diagnose fallen runs by divergence share, re-take one reference at a time, and recognize browser-upgrade or faker-upgrade divergences that are not layout bugs. - Use Case: A Storybook snapshot run falls after a Playwright upgrade. Instead of re-taking everything, you inspect the difference frames, see only native controls diverged, and conclude the browser changed — not the layout. ## Quick Start Ask the agent to apply the ui-component-tests-visual pattern to add a hover-state snapshot story for a component and sort out the currently fallen snapshot run.