Lines 1-18
Link Here
|
|
|
1 |
import { mount } from "@cypress/vue"; |
2 |
|
1 |
describe("Searchbar header changes", () => { |
3 |
describe("Searchbar header changes", () => { |
2 |
before(() => { |
|
|
3 |
cy.fetch_initial_ERM_sys_pref_value(); |
4 |
cy.set_ERM_sys_pref_value(true); |
5 |
}); |
6 |
|
4 |
|
7 |
beforeEach(() => { |
5 |
beforeEach(() => { |
8 |
cy.login(); |
6 |
cy.login(); |
9 |
cy.title().should("eq", "Koha staff interface"); |
7 |
cy.title().should("eq", "Koha staff interface"); |
10 |
}); |
8 |
}); |
11 |
|
9 |
|
12 |
after(() => { |
|
|
13 |
cy.reset_initial_ERM_sys_pref_value(); |
14 |
}); |
15 |
|
16 |
it("Default option is agreements", () => { |
10 |
it("Default option is agreements", () => { |
17 |
cy.visit("/cgi-bin/koha/erm/erm.pl"); |
11 |
cy.visit("/cgi-bin/koha/erm/erm.pl"); |
18 |
cy.get("#agreement_search_tab").parent().should("have.class", "active") |
12 |
cy.get("#agreement_search_tab").parent().should("have.class", "active") |
Lines 21-29
describe("Searchbar header changes", () => {
Link Here
|
21 |
cy.get("#agreement_search_tab").parent().should("have.class", "active") |
15 |
cy.get("#agreement_search_tab").parent().should("have.class", "active") |
22 |
}) |
16 |
}) |
23 |
|
17 |
|
24 |
it("Default option also applies to licenses", () => { |
18 |
it("Should change to licenses when in licenses", () => { |
25 |
cy.visit("/cgi-bin/koha/erm/license"); |
19 |
cy.visit("/cgi-bin/koha/erm/licenses"); |
26 |
cy.get("#agreement_search_tab").parent().should("have.class", "active") |
20 |
cy.get("#license_search_tab").parent().should("have.class", "active") |
27 |
}) |
21 |
}) |
28 |
|
22 |
|
29 |
it("Should change to packages when in local packages", () => { |
23 |
it("Should change to packages when in local packages", () => { |
30 |
- |
|
|