From b82fec31cfc73dea7a60c1362f31f4d6d3246137 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 3 Apr 2020 18:05:40 +0000 Subject: [PATCH] --- ayanova/tests/e2e/specs/help-docs.js | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ayanova/tests/e2e/specs/help-docs.js diff --git a/ayanova/tests/e2e/specs/help-docs.js b/ayanova/tests/e2e/specs/help-docs.js new file mode 100644 index 00000000..d48b8a63 --- /dev/null +++ b/ayanova/tests/e2e/specs/help-docs.js @@ -0,0 +1,31 @@ +// https://docs.cypress.io/api/introduction/api.html + +describe("HELP DOCS", () => { + it("Help docs are accessible", () => { + cy.visit("http://localhost:7575/docs/"); + cy.contains("WELCOME TO AYANOVA"); + // 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}`); + + // // we should be redirected to /dashboard + // cy.url().should("include", "/home-dashboard"); + + // //navigate and confirm + // //open nav and home menu + // cy.get("[data-cy=navicon]").click(); + // cy.get("[data-cy=home]").click(); + // cy.get("[data-cy='nav/home-user-settings']").click(); + // cy.url().should("include", "/home-user-settings"); + // cy.get("[data-cy=contextmenu]").click(); + // cy.get("[data-cy='app:logout']").click(); + // cy.url().should("include", "/login"); + }); +});