Files
raven-test/e2e/tests/regression/1-smoke/005-service-quote.js
2021-12-20 19:20:20 +00:00

64 lines
2.5 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.ayLogin("admin");
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]");
//-----------------------------------------------------
});
});