visual-testing

Detect visual regressions in Playwright screenshot tests against approved baselines.

2|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/rabbicse/go-projects --skill visual-testing-rabbicse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visual-testing
Source: https://github.com/rabbicse/go-projects/tree/main/projects/movie-ticket-booking/.claude/skills/visual-testing
Command: npx skills add https://github.com/rabbicse/go-projects --skill visual-testing-rabbicse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you catch visual regressions that functional tests miss, so broken layouts, shifted elements, and rendering glitches are discovered before they reach users.

Core Features & Use Cases

  • Playwright screenshot testing: Compare pages or components against approved baselines with configurable pixel thresholds.
  • Dynamic content handling: Mask timestamps, avatars, ads, and other unstable content while freezing animations and time-based UI.
  • Review workflows: Manage baseline updates, inspect diffs, and coordinate intentional design changes through CI or a hosted approval UI.
  • Responsive coverage: Validate the same experience across mobile, tablet, and desktop viewports.
  • Tooling options: Support built-in Playwright screenshots as well as Chromatic, Percy, and Argos CI for review-heavy teams.

Quick Start

Use the visual-testing skill to design a screenshot baseline strategy for your app, including masking rules, viewport coverage, and a review process for intentional UI changes.

Frequently Asked Questions about visual-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I catch visual regressions in Playwright that functional tests miss?

Visual regression testing catches broken layouts and shifted elements by comparing Playwright screenshot baselines with configurable pixel thresholds. You detect rendering glitches before they reach users by masking dynamic content, freezing animations, and validating responsive viewports.

How do I handle dynamic content like timestamps and avatars during screenshot testing?

Handle dynamic content in screenshot testing by masking timestamps, avatars, and ads while freezing animations and time-based UI. This ensures reliable baseline comparisons without false positives from unstable elements during visual regression checks.

Does visual regression testing work with Storybook stories and responsive viewports?

Visual regression testing works with Storybook stories and responsive viewports by validating the same experience across mobile, tablet, and desktop. You apply masking rules and tuned diff thresholds to ensure consistent UI rendering across different screen sizes.

What is the best way to manage baseline updates for intentional design changes in CI?

Manage baseline updates for intentional design changes through CI review workflows or a hosted approval UI. You coordinate screenshot baseline updates, inspect visual diffs, and approve rendering changes using tools like Chromatic, Percy, or Argos CI.

Why do my visual regression tests fail with flaky screenshot comparisons?

Visual regression tests fail with flaky screenshot comparisons when dynamic content is unmasked, animations are unfrozen, or diff thresholds are untuned. You need artifact uploads, managed baseline updates, and approval-driven testing workflows to ensure reliable results.

Can I use Chromatic, Percy, or Argos CI instead of built-in Playwright screenshots for visual testing?

You can use Chromatic, Percy, or Argos CI instead of built-in Playwright screenshots for visual testing. These tools support review-heavy teams by providing hosted approval UIs, diff inspection, and managed baseline updates for coordinated design changes.