mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
import React from "react";
|
|
import { Button } from "./Button";
|
|
|
|
describe("<Button />", () => {
|
|
it("renders", () => {
|
|
// see: https://on.cypress.io/mounting-react
|
|
cy.mount(<Button className="border-gray-800 m-5">Test button</Button>);
|
|
cy.get("button").compareSnapshot("button-element");
|
|
});
|
|
});
|