mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
16 lines
531 B
TypeScript
16 lines
531 B
TypeScript
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();
|
|
});
|
|
});
|