This commit is contained in:
2021-10-29 17:46:34 +00:00
parent f637edf7da
commit 9d3b519493
2 changed files with 466 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/// <reference types="cypress" />
describe("When authenticating", () => {
it("logs in and logs out superuser without error", () => {
cy.visit("/login");
cy.get("input[name=username]").clear().type(Cypress.env("adminusername"));
// {enter} causes the form to submit
cy.get("input[name=password]")
.clear()
.type(`${Cypress.env("adminpassword")}{enter}`);
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.contains("AyaNova SuperUser");
cy.get("[data-cy=logout]").click({force:true});
cy.url().should("include", "/login");
//-----------------------------------------------------
});
});