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 <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Matt Blenkinsop 2023-04-18 13:18:34 +00:00 committed by Tomas Cohen Arazi
parent b17fbf849c
commit 5b3d848b2e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1,3 +1,5 @@
import { mount } from "@cypress/vue";
describe("Searchbar header changes", () => {
beforeEach(() => {
@ -15,9 +17,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", () => {