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:
parent
b17fbf849c
commit
5b3d848b2e
1 changed files with 5 additions and 3 deletions
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in a new issue