Bugzilla – Attachment 149822 Details for
Bug 33064
Add a search option for licenses to top search bar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33064: Update cypress tests
Bug-33064-Update-cypress-tests.patch (text/plain), 1.97 KB, created by
Lucas Gass (lukeg)
on 2023-04-18 16:15:23 UTC
(
hide
)
Description:
Bug 33064: Update cypress tests
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-04-18 16:15:23 UTC
Size:
1.97 KB
patch
obsolete
>From b6118c36ff31ea4ee9b1302001089cc19baab7a9 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >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 <lucas@bywatersolutions.com> >--- > t/cypress/integration/ERM/Searchbar_spec.ts | 16 +++++----------- > 1 file changed, 5 insertions(+), 11 deletions(-) > >diff --git a/t/cypress/integration/ERM/Searchbar_spec.ts b/t/cypress/integration/ERM/Searchbar_spec.ts >index bf42ccc68e..12338030b9 100644 >--- a/t/cypress/integration/ERM/Searchbar_spec.ts >+++ b/t/cypress/integration/ERM/Searchbar_spec.ts >@@ -1,18 +1,12 @@ >+import { mount } from "@cypress/vue"; >+ > 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(); >- }); >- > it("Default option is agreements", () => { > cy.visit("/cgi-bin/koha/erm/erm.pl"); > cy.get("#agreement_search_tab").parent().should("have.class", "active") >@@ -21,9 +15,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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33064
:
149803
|
149805
|
149821
|
149822
|
150290
|
150291