mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
updated tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user