From 50ec3f889146d62d34f879d51876c3b4eff5efc1 Mon Sep 17 00:00:00 2001 From: Jacob O'Mara Date: Wed, 10 May 2023 15:58:52 +0100 Subject: [PATCH] Revert "Bug 33416: Fix Searchbar_spec.ts" This reverts commit 5eec29d2dabfb7a08ed092032f8222f527cc5041. Signed-off-by: Jacob O'Mara --- t/cypress/integration/ERM/Searchbar_spec.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/t/cypress/integration/ERM/Searchbar_spec.ts b/t/cypress/integration/ERM/Searchbar_spec.ts index 21bcc181f6..bf42ccc68e 100644 --- a/t/cypress/integration/ERM/Searchbar_spec.ts +++ b/t/cypress/integration/ERM/Searchbar_spec.ts @@ -1,10 +1,16 @@ 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"); - 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"}'); + }); + + after(() => { + cy.reset_initial_ERM_sys_pref_value(); }); it("Default option is agreements", () => { @@ -29,4 +35,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 -- 2.39.2