Playwright Visual Regression Tester

Automates visual regression testing using the Playwright screenshot comparison API and pixelmatch diffing library. Captures baseline snapshots, detects pixel-level UI changes across viewport sizes, and generates HTML diff reports with threshold-based pass/fail results.

agentskillexchange Updated 28 repo stars

File contents

Playwright Visual Regression Tester

Automates visual regression testing using the Playwright screenshot comparison API and pixelmatch diffing library. Captures baseline snapshots, detects pixel-level UI changes across viewport sizes, and generates HTML diff reports with threshold-based pass/fail results.

Installation

Use the upstream install or setup path that matches your environment:

  • npm install -g @playwright/cli@latest
  • npm i playwright

Requirements and caveats from upstream:

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/playwright-visual-regression-tester-3 commit 8aec74a263

Frequently asked questions

npx skillmds@latest add agentskillexchange/playwright-visual-regression-tester