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 QUOTE SECTION", () => {
|
|
it("Service quote 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.visit("/svc-quotes");
|
|
cy.url().should("include", "/svc-quotes");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=quotesTable]");
|
|
|
|
cy.visit("/svc-quote-items");
|
|
cy.url().should("include", "/svc-quote-items");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=quoteItemsTable]");
|
|
|
|
cy.visit("/svc-quote-item-units");
|
|
cy.url().should("include", "/svc-quote-item-units");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemUnitsTable]");
|
|
|
|
cy.visit("/svc-quote-item-scheduled-users");
|
|
cy.url().should("include", "/svc-quote-item-scheduled-users");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemScheduledUsersTable]");
|
|
|
|
cy.visit("/svc-quote-item-tasks");
|
|
cy.url().should("include", "/svc-quote-item-tasks");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemTasksTable]");
|
|
|
|
cy.visit("/svc-quote-item-parts");
|
|
cy.url().should("include", "/svc-quote-item-parts");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemPartsTable]");
|
|
|
|
cy.visit("/svc-quote-item-labors");
|
|
cy.url().should("include", "/svc-quote-item-labors");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemLaborsTable]");
|
|
|
|
cy.visit("/svc-quote-item-travels");
|
|
cy.url().should("include", "/svc-quote-item-travels");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemTravelsTable]");
|
|
|
|
cy.visit("/svc-quote-item-expenses");
|
|
cy.url().should("include", "/svc-quote-item-expenses");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemExpensesTable]");
|
|
|
|
cy.visit("/svc-quote-item-loans");
|
|
cy.url().should("include", "/svc-quote-item-loans");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemLoansTable]");
|
|
|
|
cy.visit("/svc-quote-item-outside-services");
|
|
cy.url().should("include", "/svc-quote-item-outside-services");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=QuoteItemOutsideServicesTable]");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|