mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
updated tests
This commit is contained in:
@@ -4,12 +4,12 @@ describe("Scroll to top button", () => {
|
||||
it("desktop scroll button clickable", () => {
|
||||
cy.viewport("macbook-15");
|
||||
cy.mount(<ScrollToTopButton />);
|
||||
cy.get("[data-cy='scroll-to-top-button']").should("exist").click();
|
||||
cy.getByData("scroll-to-top-button").should("exist").click();
|
||||
});
|
||||
|
||||
it("mobile scroll button clickable", () => {
|
||||
cy.viewport(600, 600);
|
||||
cy.mount(<ScrollToTopButton />);
|
||||
cy.get("[data-cy='scroll-to-top-button']").should("exist").click();
|
||||
cy.getByData("scroll-to-top-button").should("exist").click();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user