Created
February 16, 2020 06:16
-
-
Save randalvance/63d9c045361e5e469ad190fa15280ede to your computer and use it in GitHub Desktop.
Medium Article - React Visual Testing with Cypress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-undef */ | |
/// <reference types="cypress" /> | |
describe('Bar Chart Tests', function() { | |
it('Should match image snapshot', function() { | |
cy.visit('http://localhost:3000'); | |
cy.get('.bar-chart').matchImageSnapshot('barChart'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment