FRSOURCE/cypress-plugin-visual-regression-diff

View on GitHub
examples/next/cypress/e2e/app.cy.ts

Summary

Maintainability
A
0 mins
Test Coverage
describe("Navigation", () => {
  it("should navigate to the about page", () => {
    cy.visit("http://localhost:3000/");

    cy.get('a[href*="about"]').click();

    cy.url().should("include", "/about");

    cy.matchImage().then(({ imgNewPath }) => {
      // match against image from custom path
      cy.matchImage({ matchAgainstPath: imgNewPath });
    });
  });
});

export {};