Lines 13-36
describe("Searchbar header changes", () => {
Link Here
|
13 |
|
13 |
|
14 |
it("Default option is agreements", () => { |
14 |
it("Default option is agreements", () => { |
15 |
cy.visit("/cgi-bin/koha/erm/erm.pl"); |
15 |
cy.visit("/cgi-bin/koha/erm/erm.pl"); |
16 |
cy.get("#agreement_search-tab").parent().should("have.class", "active"); |
16 |
cy.get("#agreement_search-tab").should("have.class", "active"); |
17 |
|
17 |
|
18 |
cy.visit("/cgi-bin/koha/erm/agreements"); |
18 |
cy.visit("/cgi-bin/koha/erm/agreements"); |
19 |
cy.get("#agreement_search-tab").parent().should("have.class", "active"); |
19 |
cy.get("#agreement_search-tab").should("have.class", "active"); |
20 |
}); |
20 |
}); |
21 |
|
21 |
|
22 |
it("Should change to licenses when in licenses", () => { |
22 |
it("Should change to licenses when in licenses", () => { |
23 |
cy.visit("/cgi-bin/koha/erm/licenses"); |
23 |
cy.visit("/cgi-bin/koha/erm/licenses"); |
24 |
cy.get("#license_search-tab").parent().should("have.class", "active"); |
24 |
cy.get("#license_search-tab").should("have.class", "active"); |
25 |
}); |
25 |
}); |
26 |
|
26 |
|
27 |
it("Should change to packages when in local packages", () => { |
27 |
it("Should change to packages when in local packages", () => { |
28 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/packages"); |
28 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/packages"); |
29 |
cy.get("#package_search-tab").parent().should("have.class", "active"); |
29 |
cy.get("#package_search-tab").should("have.class", "active"); |
30 |
}); |
30 |
}); |
31 |
|
31 |
|
32 |
it("Should change to titles when in local titles", () => { |
32 |
it("Should change to titles when in local titles", () => { |
33 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/titles"); |
33 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/titles"); |
34 |
cy.get("#title_search-tab").parent().should("have.class", "active"); |
34 |
cy.get("#title_search-tab").should("have.class", "active"); |
35 |
}); |
35 |
}); |
36 |
}); |
36 |
}); |