Puppeteer Visual Regression Testing

Runs pixel-level visual regression tests using Puppeteer page.screenshot() and pixelmatch diffing library. Compares baseline screenshots against current renders with configurable threshold tolerance.

agentskillexchange Updated 28 repo stars

File contents

Puppeteer Visual Regression Testing

Runs pixel-level visual regression tests using Puppeteer page.screenshot() and pixelmatch diffing library. Compares baseline screenshots against current renders with configurable threshold tolerance.

Installation

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

  • npm i puppeteer # Downloads compatible Chrome during installation.
  • npm i puppeteer-core # Alternatively, install as a library, without downloading Chrome.

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/puppeteer-visual-regression-testing commit ef5469cf8b

Frequently asked questions

npx skillmds@latest add agentskillexchange/puppeteer-visual-regression-testing