// Basic smoke test, visit every form to ensure they load describe("SMOKE MISC", () => { it("Misc. forms open 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}`); //################# MISC cy.visit("/about"); cy.url().should("include", "/about"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=versionCard]"); cy.visit("/applog"); cy.url().should("include", "/applog"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=logText]"); cy.visit("/customize/Customer"); cy.url().should("include", "/customize/Customer"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=customizeForm]"); cy.visit("/data-list-column-view/CustomerDataList"); cy.url().should("include", "/data-list-column-view/CustomerDataList"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=dlcForm]"); cy.visit("/home-reviews/2/1"); cy.url().should("include", "/home-reviews/2/1"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=reviewsTable]"); cy.visit("/history/3/1"); cy.url().should("include", "/history/3/1"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=timeLine]"); cy.visit("/open/8/1"); cy.url().should("include", "/cust-customers/1"); cy.get("[data-cy=generalerror]").should("not.exist"); cy.get("[data-cy=name]"); cy.visit("/NOTFOUND"); cy.contains("404"); //LOGOUT cy.get("[data-cy=navicon]").click(); cy.get("[data-cy=logout]").click(); cy.url().should("include", "/login"); cy.get("[data-cy=generalerror]").should("not.exist"); //----------------------------------------------------- }); });