From a7e3f4673ae1fb632e44b908e17a987bc0643b1e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Nov 2022 08:59:13 +0100 Subject: [PATCH] Bug 32131: Make sure we login before we restore original pref's value Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- t/cypress/support/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/cypress/support/commands.js b/t/cypress/support/commands.js index 3e8f064514..968d3f09cf 100644 --- a/t/cypress/support/commands.js +++ b/t/cypress/support/commands.js @@ -59,5 +59,6 @@ Cypress.Commands.add('fetch_initial_ERM_sys_pref_value', () => { }) Cypress.Commands.add('reset_initial_ERM_sys_pref_value', () => { + cy.login("koha", "koha"); cy.set_ERM_sys_pref_value(Cypress.env("initial_ERM_Module_sys_pref_value")); -}) \ No newline at end of file +}) -- 2.20.1