73 lines
2.7 KiB
JavaScript
73 lines
2.7 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.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}`);
|
|
cy.url().should("include", "/ay-evaluate");
|
|
|
|
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]");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|