From 6d567185f0da630241e4f0f49d434e53c03fde3b Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 18 Apr 2023 13:18:34 +0000 Subject: [PATCH] Bug 33064: Update cypress tests This patch amends Searchbar_spec.ts to account for the new licenses option Test plan: 1) Run yarn cypress open 2) Select the Searchbar_spec.ts test 3) The test should pass Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 5b3d848b2ea99059ac2c08f1661d338a2f20b672) Signed-off-by: Matt Blenkinsop --- t/cypress/integration/ERM/Searchbar_spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/cypress/integration/ERM/Searchbar_spec.ts b/t/cypress/integration/ERM/Searchbar_spec.ts index bf42ccc68e..877d814b53 100644 --- a/t/cypress/integration/ERM/Searchbar_spec.ts +++ b/t/cypress/integration/ERM/Searchbar_spec.ts @@ -1,3 +1,5 @@ +import { mount } from "@cypress/vue"; + describe("Searchbar header changes", () => { before(() => { cy.fetch_initial_ERM_sys_pref_value(); @@ -21,9 +23,9 @@ describe("Searchbar header changes", () => { cy.get("#agreement_search_tab").parent().should("have.class", "active") }) - it("Default option also applies to licenses", () => { - cy.visit("/cgi-bin/koha/erm/license"); - cy.get("#agreement_search_tab").parent().should("have.class", "active") + it("Should change to licenses when in licenses", () => { + cy.visit("/cgi-bin/koha/erm/licenses"); + cy.get("#license_search_tab").parent().should("have.class", "active") }) it("Should change to packages when in local packages", () => { -- 2.39.2