Add component test for Container component

This commit is contained in:
Martin H. Normark
2022-12-30 23:57:03 +01:00
parent 592c75ddea
commit c2806ecf9b
+12
View File
@@ -0,0 +1,12 @@
import React from "react";
import { Container } from "./Container";
describe("<Container />", () => {
it("renders", () => {
// see: https://on.cypress.io/mounting-react
const className = "my-class";
const text = "test_container";
cy.mount(<Container className={className}>{text}</Container>);
cy.get(`div.${className}`).should("have.class", className).should("be.visible").should("contain", text);
});
});