npm.io
2.8.0 • Published 3 months agoCLI

cypress-image-diff-js

Licence
MIT
Version
2.8.0
Deps
9
Size
93 kB
Vulns
0
Weekly
94.3K
Stars
271

Help Us Build the Future

We're actively integrating AI-powered visual testing and we need your support to keep this project alive and evolving.

Love this tool? Buy us a coffee

cypress-image-diff

Visual regression test with cypress

This tool was created to make visual regression as simple as possible, by exposing basic functions that allow you to view the difference between images. The wrapper uses pixelmatch which is simple and powerful and relies on cypress to take screenshots.

NPM Downloads Version Build Status BrowserStack Supporter GitBook Supporter

Writing a test is as simple as this:

describe('Visuals', () => {
  it('should compare screenshot of the entire page', () => {
    cy.visit('www.google.com')
    cy.compareSnapshot('home-page')
  })
})

Beautiful HTML Report

Update baseline screenshots with one click
showcase-update-baseline
Support different screenshot inspectors
showcase-screenshot-inspectors

Cypress Image Diff documentation

Above you will find comprehensive documentation on how to setup this plugin within a cypress test suite

Keywords