Lines 33-36
describe("Sticky toolbar", () => {
Link Here
|
33 |
cy.get("#toolbar a").contains("Receive shipments").click(); |
33 |
cy.get("#toolbar a").contains("Receive shipments").click(); |
34 |
cy.get("h1").contains("Receive shipment from vendor " + vendor.name); |
34 |
cy.get("h1").contains("Receive shipment from vendor " + vendor.name); |
35 |
}); |
35 |
}); |
|
|
36 |
|
37 |
it("Should stick on scroll", () => { |
38 |
cy.visit("/cgi-bin/koha/acqui/acqui-home.pl"); |
39 |
|
40 |
cy.get("#toolbar").contains("New vendor").click(); |
41 |
cy.scrollTo("bottom"); |
42 |
cy.get("#toolbar").should("be.visible"); |
43 |
cy.get("#toolbar").should("have.class", "floating"); |
44 |
|
45 |
cy.scrollTo("top"); |
46 |
cy.get("#toolbar").should("not.have.class", "floating"); |
47 |
}); |
36 |
}); |
48 |
}); |
37 |
- |
|
|