mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-13 11:50:37 +08:00
Add cypress-image-diff for visual testing
This commit is contained in:
@@ -4,6 +4,7 @@ import { Button } from "./Button";
|
||||
describe("<Button />", () => {
|
||||
it("renders", () => {
|
||||
// see: https://on.cypress.io/mounting-react
|
||||
cy.mount(<Button className="border-gray-300">Test button</Button>);
|
||||
cy.mount(<Button className="border-gray-800 m-5">Test button</Button>);
|
||||
cy.get("button").compareSnapshot("button-element");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user