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