Bug 27826: (RM follow-up) Attempt to fix failing test

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2026-05-22 23:07:47 +00:00
parent 7a7a3ab2c6
commit 4f58ed8953
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ describe("SCO", () => {
it("Should not crash if barcode contains '+'", function () {
const barcode = `+${this.objects.items[0].item_id}+`;
cy.visitOpac("/cgi-bin/koha/sco/sco-main.pl?op=logout");
cy.get("#patronlogin").type("kkoha"); // FIXME Why is the first character not displayed??
cy.get("#patronlogin").should("be.visible").type("kkoha"); // FIXME Why is the first character not displayed??
cy.get("#patronpw").type("koha");
cy.get("#mainform button").click();
cy.get("#barcode").type(barcode);
cy.get("#barcode").should("be.visible").type(barcode);
cy.get("#scan_form button[type='submit']").click();
cy.get("div.alert-info")
.contains(`Item checked out (${barcode})`)