|
Line 0
Link Here
|
| 0 |
- |
1 |
describe("Sticky toolbar", () => { |
|
|
2 |
beforeEach(() => { |
| 3 |
cy.login(); |
| 4 |
cy.title().should("eq", "Koha staff interface"); |
| 5 |
}); |
| 6 |
|
| 7 |
it("Should stick on scroll", () => { |
| 8 |
cy.visit("/cgi-bin/koha/acqui/acqui-home.pl"); |
| 9 |
|
| 10 |
cy.get("#toolbar").contains("New vendor").click(); |
| 11 |
cy.scrollTo("bottom"); |
| 12 |
cy.get("#toolbar").should("be.visible"); |
| 13 |
cy.get("#toolbar").should("have.class", "floating"); |
| 14 |
|
| 15 |
cy.scrollTo("top"); |
| 16 |
cy.get("#toolbar").should("not.have.class", "floating"); |
| 17 |
}); |
| 18 |
}); |