diff --git a/t/cypress/integration/ERM/Searchbar_spec.ts b/t/cypress/integration/ERM/Searchbar_spec.ts index bf42ccc68e..21bcc181f6 100644 --- a/t/cypress/integration/ERM/Searchbar_spec.ts +++ b/t/cypress/integration/ERM/Searchbar_spec.ts @@ -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") }) -}) \ No newline at end of file +})