Files
raven-test/e2e/tests/regression/authorization/authenticate-bad-creds-fails.js
2021-10-29 19:34:12 +00:00

23 lines
631 B
JavaScript

/// <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");
//-----------------------------------------------------
});
});