FRSOURCE/cypress-plugin-visual-regression-diff

View on GitHub
examples/webpack/cypress/component/HelloWorld.cy.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { mount } from "cypress/vue";
import HelloWorld from "../../src/components/HelloWorld.vue";

const msg = "Some random test message";

describe("HelloWorld.cy.js", () => {
  it("playground", () => {
    mount(HelloWorld, {
      propsData: { msg },
    }).then(() => {
      cy.contains("h1", msg);
      cy.matchImage();
      cy.get('[data-testid="description"]').matchImage();
    });
  });
});