From a711e153d61f3ed9d9d0d214105e8c173a9486ca 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 Signed-off-by: Tomas Cohen Arazi --- 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 05e1b11240..a918c15159 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.39.5