bhuber2010 / cypress-image-diff

Visual regression test with cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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')
  })
})

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

About

Visual regression test with cypress

License:MIT License


Languages

Language:Handlebars 47.8%Language:JavaScript 41.4%Language:HTML 8.5%Language:Dockerfile 1.8%Language:Makefile 0.5%