scroll buttons fixed

This commit is contained in:
Owen Rees
2023-06-20 17:45:40 +02:00
parent b90d7a25de
commit 156268e9bb
10 changed files with 58 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
import ScrollToTopButton from "@/components/ScrollToTopButton";
describe("Scroll to top button", () => {
it("desktop scroll button clickable", () => {
cy.viewport("macbook-15");
cy.mount(<ScrollToTopButton isLgScreen={true} />);
cy.get("[data-cy='scroll-to-top-button']").should("exist").click();
});
it("mobile scroll button clickable", () => {
cy.viewport(600, 600);
cy.mount(<ScrollToTopButton isLgScreen={false} />);
cy.get("[data-cy='scroll-to-top-button']").should("exist").click();
});
});