65 lines
2.4 KiB
JavaScript
65 lines
2.4 KiB
JavaScript
// Basic smoke test, visit every form to ensure they load
|
|
|
|
describe("SMOKE SERVICE PM SECTION", () => {
|
|
it("Service pm forms open without error", () => {
|
|
cy.ayLogin("admin");
|
|
|
|
cy.visit("/svc-pms");
|
|
cy.url().should("include", "/svc-pms");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=pmsTable]");
|
|
|
|
cy.visit("/svc-pm-items");
|
|
cy.url().should("include", "/svc-pm-items");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=pmItemsTable]");
|
|
|
|
cy.visit("/svc-pm-item-units");
|
|
cy.url().should("include", "/svc-pm-item-units");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemUnitsTable]");
|
|
|
|
cy.visit("/svc-pm-item-scheduled-users");
|
|
cy.url().should("include", "/svc-pm-item-scheduled-users");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemScheduledUsersTable]");
|
|
|
|
cy.visit("/svc-pm-item-tasks");
|
|
cy.url().should("include", "/svc-pm-item-tasks");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemTasksTable]");
|
|
|
|
cy.visit("/svc-pm-item-parts");
|
|
cy.url().should("include", "/svc-pm-item-parts");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemPartsTable]");
|
|
|
|
cy.visit("/svc-pm-item-labors");
|
|
cy.url().should("include", "/svc-pm-item-labors");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemLaborsTable]");
|
|
|
|
cy.visit("/svc-pm-item-travels");
|
|
cy.url().should("include", "/svc-pm-item-travels");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemTravelsTable]");
|
|
|
|
cy.visit("/svc-pm-item-expenses");
|
|
cy.url().should("include", "/svc-pm-item-expenses");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemExpensesTable]");
|
|
|
|
cy.visit("/svc-pm-item-loans");
|
|
cy.url().should("include", "/svc-pm-item-loans");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemLoansTable]");
|
|
|
|
cy.visit("/svc-pm-item-outside-services");
|
|
cy.url().should("include", "/svc-pm-item-outside-services");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=PMItemOutsideServicesTable]");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|