Bug 38899: Add a cypress test

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 57bd44ae0f)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Matt Blenkinsop 2025-01-15 10:42:19 +00:00 committed by Paul Derscheid
parent 4fe86bf009
commit fe6182ed90
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 12 additions and 0 deletions

View File

@ -33,4 +33,16 @@ describe("Sticky toolbar", () => {
cy.get("#toolbar a").contains("Receive shipments").click();
cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
});
it("Should stick on scroll", () => {
cy.visit("/cgi-bin/koha/acqui/acqui-home.pl");
cy.get("#toolbar").contains("New vendor").click();
cy.scrollTo("bottom");
cy.get("#toolbar").should("be.visible");
cy.get("#toolbar").should("have.class", "floating");
cy.scrollTo("top");
cy.get("#toolbar").should("not.have.class", "floating");
});
});