updated tests

This commit is contained in:
Owen Rees
2023-06-22 13:39:50 +02:00
parent 6f7b840b54
commit ef08aa3a61
28 changed files with 43 additions and 43 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ describe("Scroll to top button", () => {
it("desktop scroll to top", () => {
cy.viewport(1024, 800);
cy.get("[data-cy='tournament-table-div']").scrollTo("bottom");
cy.get("[data-cy='scroll-to-top-button']").click();
cy.getByData("tournament-table-div").scrollTo("bottom");
cy.getByData("scroll-to-top-button").click();
// cy.get("[data-cy='tournament-table-div']")
// .invoke("scrollTop")
// .should("equal", 0);
@@ -20,7 +20,7 @@ describe("Scroll to top button", () => {
cy.viewport(600, 600);
cy.scrollTo("bottom");
cy.window().its("scrollY").should("not.equal", 0);
cy.get("[data-cy='scroll-to-top-button']").click();
cy.getByData("scroll-to-top-button").click();
cy.window().its("scrollY").should("equal", 0);
});
});