diff --git a/website/src/components/Container.cy.tsx b/website/src/components/Container.cy.tsx new file mode 100644 index 00000000..5ffa204f --- /dev/null +++ b/website/src/components/Container.cy.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import { Container } from "./Container"; + +describe("", () => { + it("renders", () => { + // see: https://on.cypress.io/mounting-react + const className = "my-class"; + const text = "test_container"; + cy.mount({text}); + cy.get(`div.${className}`).should("have.class", className).should("be.visible").should("contain", text); + }); +});