Bugzilla – Attachment 143941 Details for
Bug 32131
Cypress tests are failing if ERMModule is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32131: (to-squash) Cypress tests are failing if ERMModule is off
Bug-32131-to-squash-Cypress-tests-are-failing-if-E.patch (text/plain), 1.76 KB, created by
Jonathan Druart
on 2022-11-16 08:04:54 UTC
(
hide
)
Description:
Bug 32131: (to-squash) Cypress tests are failing if ERMModule is off
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-11-16 08:04:54 UTC
Size:
1.76 KB
patch
obsolete
>From db3fd987b94cef19ae30b8677c4994a4209aac63 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 16 Nov 2022 09:03:12 +0100 >Subject: [PATCH] Bug 32131: (to-squash) Cypress tests are failing if ERMModule > is off > >Please squash this with the first patch if 32147 is pushed before 32131. >--- > t/cypress/support/commands.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/cypress/support/commands.js b/t/cypress/support/commands.js >index 968d3f09cf8..a918c151592 100644 >--- a/t/cypress/support/commands.js >+++ b/t/cypress/support/commands.js >@@ -35,7 +35,7 @@ Cypress.Commands.add('login', (username, password) => { > Cypress.Commands.add('set_ERM_sys_pref_value', (enable) => { > cy.visit('/cgi-bin/koha/admin/admin-home.pl') > cy.get("h4").contains("Global system preferences").click(); >- cy.get("a[title^=E-Resource]").contains("E-Resource management").click(); >+ cy.get("a[title^=E-resource]").contains("E-resource management").click(); > cy.get('#pref_ERMModule').then(($select) => { > // Only enable if currently disabled, or only disable if currently enabled > let sys_pref_value = $select.find(":selected").text().trim(); >@@ -52,7 +52,7 @@ Cypress.Commands.add('fetch_initial_ERM_sys_pref_value', () => { > cy.login("koha", "koha"); > cy.visit('/cgi-bin/koha/admin/admin-home.pl') > cy.get("h4").contains("Global system preferences").click(); >- cy.get("a[title^=E-Resource]").contains("E-Resource management").click(); >+ cy.get("a[title^=E-resource]").contains("E-resource management").click(); > cy.get('#pref_ERMModule').then(($select) => { > Cypress.env('initial_ERM_Module_sys_pref_value', $select.find(":selected").text().trim() == 'Enable'); > }) >-- >2.25.1
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 32131
:
143803
|
143938
|
143939
|
143940
|
143941
|
144006
|
144007
|
144008
|
144009