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:
parent
4fe86bf009
commit
fe6182ed90
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue