Fixed sign in page test failing issue

This commit is contained in:
AmirReza Jamali
2026-05-04 10:11:57 +03:30
parent 05d40a242c
commit 4b425d6a46
+1 -1
View File
@@ -72,7 +72,7 @@ describe("sign-in page", () => {
it("shows required errors under each field and does not call login API", () => { it("shows required errors under each field and does not call login API", () => {
cy.contains('button[type="submit"]', "Sign in").click(); cy.contains('button[type="submit"]', "Sign in").click();
cy.get("p.text-red") cy.get("p.text-error")
.should("have.length", 2) .should("have.length", 2)
.each(($message) => { .each(($message) => {
expect($message.text().trim()).to.eq("This field is required"); expect($message.text().trim()).to.eq("This field is required");