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 <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-05-25 06:55:34 +02:00 committed by Lucas Gass
parent 4f58ed8953
commit 7cdae514a4
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 0 deletions

View File

@ -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 () {