1.0.0 • Published 4 years ago
cypress-image-match v1.0.0
cypress-image-match
Cypress command package to compare images with simple pixel diff (pixelmatch).
Adding to project
Add following lines to your commands.ts:
/// <reference types="cypress-image-match" />
import "cypress-image-match/commands";
Usage
In the first run use update option to generate a snapshots.
cy.get("#sample").matchImage("sample", { update: true });
After that to just call.
cy.get("#sample").matchImage("sample");
1.0.0
4 years ago