View | Details | Raw Unified | Return to bug 33416
Collapse All | Expand All

(-)a/t/cypress/integration/ERM/Searchbar_spec.ts (-10 / +3 lines)
Lines 1-16 Link Here
1
describe("Searchbar header changes", () => {
1
describe("Searchbar header changes", () => {
2
    before(() => {
3
        cy.fetch_initial_ERM_sys_pref_value();
4
        cy.set_ERM_sys_pref_value(true);
5
    });
6
2
7
    beforeEach(() => {
3
    beforeEach(() => {
8
        cy.login();
4
        cy.login();
9
        cy.title().should("eq", "Koha staff interface");
5
        cy.title().should("eq", "Koha staff interface");
10
    });
6
        cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMModule", '{"value":"1"}');
11
7
        cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMProviders", '{"value":"local"}');
12
    after(() => {
13
        cy.reset_initial_ERM_sys_pref_value();
14
    });
8
    });
15
9
16
    it("Default option is agreements", () => {
10
    it("Default option is agreements", () => {
Lines 35-38 describe("Searchbar header changes", () => { Link Here
35
        cy.visit("/cgi-bin/koha/erm/eholdings/local/titles");
29
        cy.visit("/cgi-bin/koha/erm/eholdings/local/titles");
36
        cy.get("#title_search_tab").parent().should("have.class", "active")
30
        cy.get("#title_search_tab").parent().should("have.class", "active")
37
    })
31
    })
38
})
32
})
39
- 

Return to bug 33416