This commit is contained in:
@@ -4,11 +4,8 @@ todo: missing smoke tests:
|
|||||||
all svc-quote* except for one main quotes lists (many of these)
|
all svc-quote* except for one main quotes lists (many of these)
|
||||||
all svc-pms* except for one main pm list (many many subitems)
|
all svc-pms* except for one main pm list (many many subitems)
|
||||||
|
|
||||||
path: "/inv-part-requests",
|
|
||||||
path: "/adm-attachments",
|
|
||||||
path: "/customer-workorders/:recordid",
|
|
||||||
path: "/customer-csr/:recordid",
|
|
||||||
path: "/no-features-available",
|
|
||||||
path: "/viewreport",
|
path: "/viewreport",
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ describe("SMOKE CUSTOMER SECTION", () => {
|
|||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=workordersTable]");
|
cy.get("[data-cy=workordersTable]");
|
||||||
|
|
||||||
|
//todo:
|
||||||
|
//path: "/customer-workorders/:recordid",
|
||||||
|
//path: "/customer-csr/:recordid"
|
||||||
|
|
||||||
//LOGOUT
|
//LOGOUT
|
||||||
cy.get("[data-cy=navicon]").click();
|
cy.get("[data-cy=navicon]").click();
|
||||||
cy.get("[data-cy=logout]").click();
|
cy.get("[data-cy=logout]").click();
|
||||||
|
|||||||
@@ -23,11 +23,61 @@ describe("SMOKE SERVICE WO SECTION", () => {
|
|||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=customerId]", { timeout: 10000 });
|
cy.get("[data-cy=customerId]", { timeout: 10000 });
|
||||||
|
|
||||||
//LOGOUT
|
cy.visit("/svc-workorder-items");
|
||||||
cy.get("[data-cy=navicon]").click();
|
cy.url().should("include", "/svc-workorder-items");
|
||||||
cy.get("[data-cy=logout]").click();
|
|
||||||
cy.url().should("include", "/login");
|
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=workorderItemsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-units");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-units");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemUnitsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-scheduled-users");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-scheduled-users");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemScheduledUsersTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-tasks");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-tasks");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemTasksTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-parts");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-parts");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemPartsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-part-requests");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-part-requests");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemPartRequestsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-labors");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-labors");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemLaborsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-travels");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-travels");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemTravelsTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-expenses");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-expenses");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemExpensesTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-loans");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-loans");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemLoansTable]");
|
||||||
|
|
||||||
|
cy.visit("/svc-workorder-item-outside-services");
|
||||||
|
cy.url().should("include", "/svc-workorder-item-outside-services");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=WorkOrderItemOutsideServicesTable]");
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,6 +17,59 @@ describe("SMOKE SERVICE QUOTE SECTION", () => {
|
|||||||
cy.url().should("include", "/svc-quotes");
|
cy.url().should("include", "/svc-quotes");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=quotesTable]");
|
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]");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -33,6 +33,11 @@ describe("SMOKE INVENTORY", () => {
|
|||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
cy.get("[data-cy=serial]");
|
cy.get("[data-cy=serial]");
|
||||||
|
|
||||||
|
cy.visit("/inv-part-requests");
|
||||||
|
cy.url().should("include", "/inv-part-requests");
|
||||||
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
cy.get("[data-cy=partInventoryRequestTable]");
|
||||||
|
|
||||||
cy.visit("/inv-part-inventory");
|
cy.visit("/inv-part-inventory");
|
||||||
cy.url().should("include", "/inv-part-inventory");
|
cy.url().should("include", "/inv-part-inventory");
|
||||||
cy.get("[data-cy=generalerror]").should("not.exist");
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ describe("SMOKE MISC", () => {
|
|||||||
cy.visit("/NOTFOUND");
|
cy.visit("/NOTFOUND");
|
||||||
cy.contains("404");
|
cy.contains("404");
|
||||||
|
|
||||||
|
cy.visit("/no-features-available");
|
||||||
|
cy.url().should("include", "/no-features-available");
|
||||||
|
cy.get("[data-cy=NFA]");
|
||||||
|
|
||||||
//LOGOUT
|
//LOGOUT
|
||||||
cy.get("[data-cy=navicon]").click();
|
cy.get("[data-cy=navicon]").click();
|
||||||
cy.get("[data-cy=logout]").click();
|
cy.get("[data-cy=logout]").click();
|
||||||
|
|||||||
Reference in New Issue
Block a user