diff --git a/t/cypress/integration/OPAC/SCO_spec.ts b/t/cypress/integration/OPAC/SCO_spec.ts index 16d11d5ab9..4f97f1942b 100644 --- a/t/cypress/integration/OPAC/SCO_spec.ts +++ b/t/cypress/integration/OPAC/SCO_spec.ts @@ -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})`)