From 7cdae514a4db6661ad9f8ad4e07c9a69a543980a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 May 2026 06:55:34 +0200 Subject: [PATCH] Bug 27826: Turn on WebBasedSelfCheck to fix Cypress tests On Jenkins, SCO is not setup like it is in ktd after a reset_all from insert_data.pl 251 sub configure_selfcheckout { Signed-off-by: Lucas Gass --- t/cypress/integration/OPAC/SCO_spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/cypress/integration/OPAC/SCO_spec.ts b/t/cypress/integration/OPAC/SCO_spec.ts index 4f97f1942b..e67cb8bd6d 100644 --- a/t/cypress/integration/OPAC/SCO_spec.ts +++ b/t/cypress/integration/OPAC/SCO_spec.ts @@ -7,10 +7,17 @@ describe("SCO", () => { values: [objects.items[0].item_id], }); }); + cy.task("query", { + sql: "SELECT value FROM systempreferences WHERE variable='WebBasedSelfCheck'", + }).then(value => { + cy.wrap(value).as("syspref_WebBasedSelfCheck"); + }); }); afterEach(function () { cy.task("deleteSampleObjects", this.objects); + cy.login(); + cy.set_syspref("WebBasedSelfCheck", this.syspref_WebBasedSelfCheck); }); it("Should not crash if barcode contains '+'", function () {