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:
parent
4f58ed8953
commit
7cdae514a4
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue