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