This commit is contained in:
2021-11-04 00:02:10 +00:00
parent 6b0df5222c
commit 0eabd452c7

View File

@@ -1,22 +0,0 @@
/// <reference types="cypress" />
describe("When authenticating with bad credentials", () => {
it("does not allow a login returns error", () => {
cy.visit("/login");
cy.get("input[name=username]").clear().type('notauser');
// {enter} causes the form to submit
cy.get("input[name=password]")
.clear()
.type(`notapassword{enter}`);
// //LOGOUT
// cy.get("[data-cy=navicon]").click();
// cy.contains("AyaNova SuperUser");
cy.get("[data-cy=loginbutton_failedcreds]");
cy.url().should("include", "/login");
//-----------------------------------------------------
});
});