Loading...
Loading...
Design and implement visual regression testing for UI changes. Defines screenshot coverage, rendering stabilization, baseline management, and CI integration (e.g., Playwright screenshots, Percy/Chromatic). Use when UI/styling/layout changes need protection against regressions, or when adding screenshot-based tests to a web/WASM/desktop UI.
npx skill4agent add terraphim/terraphim-skills visual-testing// @playwright/test
await page.setViewportSize({ width: 1280, height: 720 });
await page.goto("/settings");
await expect(page.getByRole("main")).toHaveScreenshot("settings.png");# Visual Regression Plan: {change}
## Coverage
- Pages/components:
- States:
## Determinism Controls
- Viewport:
- Animations:
- Data:
- Fonts:
## Baseline Policy
- Where stored:
- When to update:
- Review requirements:
## Execution
- Local command:
- CI job: