Bug 33416: Fix Searchbar_spec.ts

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5a39823dbc)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2023-04-19 09:19:29 -03:00 committed by Jacob O'Mara
parent e1fbe67683
commit 5eec29d2da
1 changed files with 3 additions and 9 deletions

View File

@ -1,16 +1,10 @@
describe("Searchbar header changes", () => {
before(() => {
cy.fetch_initial_ERM_sys_pref_value();
cy.set_ERM_sys_pref_value(true);
});
beforeEach(() => {
cy.login();
cy.title().should("eq", "Koha staff interface");
});
after(() => {
cy.reset_initial_ERM_sys_pref_value();
cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMModule", '{"value":"1"}');
cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMProviders", '{"value":"local"}');
});
it("Default option is agreements", () => {
@ -35,4 +29,4 @@ describe("Searchbar header changes", () => {
cy.visit("/cgi-bin/koha/erm/eholdings/local/titles");
cy.get("#title_search_tab").parent().should("have.class", "active")
})
})
})