visual-test

Installation
SKILL.md

Visual Test a Component

Visually verify $ARGUMENTS by launching Storybook and capturing a screenshot with playwright-cli.

Prerequisites

Run playwright-cli via npx so nothing is installed globally on the user's box. The first invocation downloads @playwright/cli@0.1.1 into the npx cache; subsequent calls are cached. Every command below uses this form:

npx -y @playwright/cli@0.1.1 <command>

Critical: use the per-component Storybook only

Always boot the per-component stories package (react-<component>-stories) via nx storybook target, which only imports its own component's stories and dependencies.

Steps

  1. Find the component's stories package. Each v9 component has a dedicated stories package named react-<component>-stories:
Installs
1
GitHub Stars
20.2K
First Seen
3 days ago
visual-test — microsoft/fluentui