57 lines
1.9 KiB
JavaScript
57 lines
1.9 KiB
JavaScript
// Basic smoke test, visit every form to ensure they load
|
|
|
|
describe("SMOKE MISC", () => {
|
|
it("Misc. forms open without error", () => {
|
|
cy.ayLogin("admin");
|
|
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");
|
|
|
|
cy.visit("/no-features-available");
|
|
cy.url().should("include", "/no-features-available");
|
|
cy.get("[data-cy=NFA]");
|
|
|
|
//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");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|