Fixed sign in page test failing issue
This commit is contained in:
@@ -72,7 +72,7 @@ describe("sign-in page", () => {
|
||||
it("shows required errors under each field and does not call login API", () => {
|
||||
cy.contains('button[type="submit"]', "Sign in").click();
|
||||
|
||||
cy.get("p.text-red")
|
||||
cy.get("p.text-error")
|
||||
.should("have.length", 2)
|
||||
.each(($message) => {
|
||||
expect($message.text().trim()).to.eq("This field is required");
|
||||
|
||||
Reference in New Issue
Block a user