FRSOURCE/cypress-plugin-visual-regression-diff

View on GitHub
examples/webpack/cypress/e2e/spec.cy.ts

Summary

Maintainability
A
0 mins
Test Coverage
describe("My First Test", () => {
  it("Visits the app root url", () => {
    cy.visit("/");
    cy.contains("h1", "Welcome to Your Vue.js App");
    cy.matchImage().then(({ imgNewPath }) => {
      // match against image from custom path
      cy.matchImage({ matchAgainstPath: imgNewPath });
    });
  });
});