A Percy-style visual regression testing tool that compares Figma designs with live web implementations.
Install dependencies from the root directory:
pnpm installPlaywright requires specific browser binaries. If you encounter "browser version mismatch" errors or if it's your first time running tests, run:
pnpm exec playwright install chromiumNote: This ensures the Chromium version matches the @playwright/test version installed in the project.
Copy .env.example to .env and fill in your Figma token and other required variables:
cp .env.example .envAll commands should be run from the root directory.
- Start Dashboard:
pnpm dev - Run Tests (CLI):
pnpm test - Capture Auth Session:
pnpm --filter playwright exec tsx helpers/saveAuth.ts
core/: Shared logic for diffing, Figma API, and storage.dashboard/: Next.js web interface for managing projects and reviewing diffs.playwright/: Visual regression test suite.snapshots/: Local storage for baselines, current screenshots, and results (gitignored).
If you see errors about Chromium version, always run:
pnpm exec playwright install chromium
While you can run commands inside dashboard/ or playwright/, it is recommended to stay at the root and use the provided pnpm scripts or --filter flags to maintain consistent environment variables and path resolution.