cypress-image-compare
TypeScript icon, indicating that this package has built-in type declarations

5.5.0 • Public • Published

cypress-image-compare

Cypress command package to compare images with simple pixel diff (pixelmatch). Supports PNG.

Adding to project

Add following lines to your commands.ts:

/// <reference types="cypress-image-compare" />

import "cypress-image-compare/commands";

Usage

In the first run use update option to generate a snapshots.

cy.get("#sample").matchImage("sample", { update: true });

After that just call.

cy.get("#sample").matchImage("sample");

Readme

Keywords

none

Package Sidebar

Install

npm i cypress-image-compare

Weekly Downloads

609

Version

5.5.0

License

MIT

Unpacked Size

17.8 kB

Total Files

9

Last publish

Collaborators

  • keeema
  • erikvojtech
  • knachtneblova
  • nemeckuba
  • klaral