testing-visual-regression

Featured

Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Visual Regression Tester ## Overview Detect unintended visual changes in UI components by capturing screenshots and comparing them pixel-by-pixel against approved baselines. Supports Playwright visual comparisons, Percy, Chromatic, BackstopJS, and reg-suit. ## Prerequisites - Browser automation tool installed (Playwright, Puppeteer, or Cypress) - Visual regression library configured (Playwright `toHaveScreenshot`, Percy, Chromatic, or BackstopJS) - Baseline screenshots committed to version control or stored in a cloud service - Storybook or component playground running for isolated component captures (optional) - Consistent rendering environment (Docker or CI with fixed OS/fonts/GPU settings) ## Instructions 1. Identify all UI components and pages requiring visual coverage using Glob to scan component directories and route definitions. 2. Create a visual test file for each component or page: - Navigate to the component URL or Storybook story. - Wait for all network requests, animations, and lazy-loaded images to complete. - Set a consistent viewport size (e.g., 1280x720 for desktop, 375x812 for mobile). 3. Capture screenshots with deterministic settings: - Disable animations and transitions (`* { animation: none !important; transition: none !important; }`). - Mask dynamic content (timestamps, random avatars, ads) with CSS overlays. - Use `fullPage: true` for scrollable pages. 4. Compare captured screenshots against baselines: - Configure pixel dif...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category