This commit is contained in:
@@ -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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user