mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
75a6c74306
* Fix layout issues & co-locate components * Fix front page * Fix centering
16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
import ScrollToTopButton from "@/app/[lang]/tournois/ScrollToTopButton";
|
|
|
|
describe("Scroll to top button", () => {
|
|
it("desktop scroll button clickable", () => {
|
|
cy.viewport("macbook-15");
|
|
cy.mount(<ScrollToTopButton />);
|
|
cy.getByData("scroll-to-top-button").should("exist").click();
|
|
});
|
|
|
|
it("mobile scroll button clickable", () => {
|
|
cy.viewport(600, 600);
|
|
cy.mount(<ScrollToTopButton />);
|
|
cy.getByData("scroll-to-top-button").should("exist").click();
|
|
});
|
|
});
|