This commit is contained in:
2021-12-17 22:30:37 +00:00
parent 11b524c381
commit f50ded131b
2 changed files with 521 additions and 533 deletions

View File

@@ -1,5 +1,5 @@
{ {
"defaultCommandTimeout":5000, "defaultCommandTimeout":7000,
"integrationFolder": "tests", "integrationFolder": "tests",
"supportFile":"support", "supportFile":"support",
"xxbaseUrl": "http://localhost:7575", "xxbaseUrl": "http://localhost:7575",

View File

@@ -4,9 +4,7 @@ describe("SMOKE", () => {
it("Every form opens without error", () => { it("Every form opens without error", () => {
cy.visit("/login"); cy.visit("/login");
cy.get("input[name=username]") cy.get("input[name=username]").clear().type(Cypress.env("adminusername"));
.clear()
.type(Cypress.env("adminusername"));
// {enter} causes the form to submit // {enter} causes the form to submit
cy.get("input[name=password]") cy.get("input[name=password]")
@@ -16,62 +14,69 @@ describe("SMOKE", () => {
//################# HOME //################# HOME
cy.visit("/home-dashboard"); cy.visit("/home-dashboard");
cy.url().should("include", "/home-dashboard"); cy.url().should("include", "/home-dashboard");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.visit("/home-search"); cy.visit("/home-search");
cy.url().should("include", "/home-search"); cy.url().should("include", "/home-search");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=phrase]"); cy.get("[data-cy=phrase]");
cy.visit("/home-schedule"); cy.visit("/home-schedule");
cy.url().should("include", "/home-schedule"); cy.url().should("include", "/home-schedule");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=calendar]"); cy.get("[data-cy=calendar]");
cy.visit("/home-memos"); cy.visit("/home-memos");
cy.url().should("include", "/home-memos"); cy.url().should("include", "/home-memos");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=memosTable]"); cy.get("[data-cy=memosTable]");
cy.visit("/home-memos/0"); //no reliable single id would work for existing cy.visit("/home-memos/0"); //no reliable single id would work for existing
cy.url().should("include", "/home-memos/0"); cy.url().should("include", "/home-memos/0");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=pickListSelectedUserId]"); cy.get("[data-cy=pickListSelectedUserId]");
cy.visit("/home-reminders"); cy.visit("/home-reminders");
cy.url().should("include", "/home-reminders"); cy.url().should("include", "/home-reminders");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=remindersTable]"); cy.get("[data-cy=remindersTable]");
cy.visit("/home-reminders/0"); cy.visit("/home-reminders/0");
cy.url().should("include", "/home-reminders/0"); cy.url().should("include", "/home-reminders/0");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/home-reviews"); cy.visit("/home-reviews");
cy.url().should("include", "/home-reviews"); cy.url().should("include", "/home-reviews");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=reviewsTable]"); cy.get("[data-cy=reviewsTable]");
cy.visit("/home-reviews/8/1"); cy.visit("/home-reviews/8/1");
cy.url().should("include", "/home-reviews/8/1"); cy.url().should("include", "/home-reviews/8/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=clickThru]"); cy.get("[data-cy=clickThru]");
cy.visit("/home-user-settings"); cy.visit("/home-user-settings");
cy.url().should("include", "/home-user-settings"); cy.url().should("include", "/home-user-settings");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=emailAddress]"); cy.get("[data-cy=emailAddress]");
cy.visit("/home-password"); cy.visit("/home-password");
cy.url().should("include", "/home-password"); cy.url().should("include", "/home-password");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=loginName]"); cy.get("[data-cy=loginName]");
cy.visit("/home-security"); cy.visit("/home-security");
cy.url().should("include", "/home-security"); cy.url().should("include", "/home-security");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=tfa]"); cy.get("[data-cy=tfa]");
//confirm a qrCode is actually being displayed
cy.get("[data-cy=qrCodeImage]")
.should("be.visible")
.and(($img) => {
// "naturalWidth" and "naturalHeight" are set when the image loads
expect($img[0].naturalWidth).to.be.greaterThan(0);
});
//can't do this without reset code etc, just logs out //can't do this without reset code etc, just logs out
// cy.visit("/home-reset"); // cy.visit("/home-reset");
@@ -80,61 +85,58 @@ describe("SMOKE", () => {
cy.visit("/home-notify-subscriptions"); cy.visit("/home-notify-subscriptions");
cy.url().should("include", "/home-notify-subscriptions"); cy.url().should("include", "/home-notify-subscriptions");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=subsTable]"); cy.get("[data-cy=subsTable]");
cy.visit("/home-notify-subscriptions/0"); cy.visit("/home-notify-subscriptions/0");
cy.url().should( cy.url().should("include", "/home-notify-subscriptions/0");
"include", cy.get("[data-cy=generalerror]").should("not.exist");
"/home-notify-subscriptions/0"
);
cy.get("[data-cy=generalerror]").should('not.exist');
cy.get("[data-cy=eventType]"); cy.get("[data-cy=eventType]");
cy.visit("/home-notifications"); cy.visit("/home-notifications");
cy.url().should("include", "/home-notifications"); cy.url().should("include", "/home-notifications");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=notifications]"); cy.get("[data-cy=notifications]");
cy.visit("/home-notify-direct"); cy.visit("/home-notify-direct");
cy.url().should("include", "/home-notify-direct"); cy.url().should("include", "/home-notify-direct");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=pickListSelectedUserId]"); cy.get("[data-cy=pickListSelectedUserId]");
//################# CUSTOMERS //################# CUSTOMERS
cy.visit("/cust-customers"); cy.visit("/cust-customers");
cy.url().should("include", "/cust-customers"); cy.url().should("include", "/cust-customers");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=customersTable]"); cy.get("[data-cy=customersTable]");
cy.visit("/cust-customers/1"); cy.visit("/cust-customers/1");
cy.url().should("include", "/cust-customers/1"); cy.url().should("include", "/cust-customers/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/cust-customer-notes/1"); cy.visit("/cust-customer-notes/1");
cy.url().should("include", "/cust-customer-notes/1"); cy.url().should("include", "/cust-customer-notes/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=clickThru]"); cy.get("[data-cy=clickThru]");
cy.visit("/cust-customer-note/0"); cy.visit("/cust-customer-note/0");
cy.url().should("include", "/cust-customer-note/0"); cy.url().should("include", "/cust-customer-note/0");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=notes]"); cy.get("[data-cy=notes]");
cy.visit("/cust-head-offices"); cy.visit("/cust-head-offices");
cy.url().should("include", "/cust-head-offices"); cy.url().should("include", "/cust-head-offices");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=headofficesTable]"); cy.get("[data-cy=headofficesTable]");
cy.visit("/cust-head-offices/1"); cy.visit("/cust-head-offices/1");
cy.url().should("include", "cust-head-offices/1"); cy.url().should("include", "cust-head-offices/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/cust-users"); cy.visit("/cust-users");
cy.url().should("include", "/cust-users"); cy.url().should("include", "/cust-users");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=custUsersTable]"); cy.get("[data-cy=custUsersTable]");
// cy.visit("/cust-users/0"); // cy.visit("/cust-users/0");
@@ -144,358 +146,349 @@ describe("SMOKE", () => {
//################# SERVICE //################# SERVICE
cy.visit("/svc-schedule"); cy.visit("/svc-schedule");
cy.url().should("include", "/svc-schedule"); cy.url().should("include", "/svc-schedule");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=calendar]"); cy.get("[data-cy=calendar]");
cy.visit("/svc-workorders"); cy.visit("/svc-workorders");
cy.url().should("include", "/svc-workorders"); cy.url().should("include", "/svc-workorders");
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]");
cy.visit("/svc-workorders/1"); cy.visit("/svc-workorders/1");
cy.url().should("include", "svc-workorders/1"); cy.url().should("include", "svc-workorders/1");
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=customerId]",{timeout:10000});
cy.visit("/svc-quotes"); cy.visit("/svc-quotes");
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-pm-list"); cy.visit("/svc-pms");
cy.url().should("include", "/svc-pm-list"); cy.url().should("include", "/svc-pms");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=pmsTable]"); cy.get("[data-cy=pmsTable]");
cy.visit("/svc-units"); cy.visit("/svc-units");
cy.url().should("include", "/svc-units"); cy.url().should("include", "/svc-units");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=unitsTable]"); cy.get("[data-cy=unitsTable]");
cy.visit("/svc-units/1"); cy.visit("/svc-units/1");
cy.url().should("include", "/svc-units/1"); cy.url().should("include", "/svc-units/1");
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("/svc-unit-models"); cy.visit("/svc-unit-models");
cy.url().should("include", "/svc-unit-models"); cy.url().should("include", "/svc-unit-models");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=unitmodelsTable]"); cy.get("[data-cy=unitmodelsTable]");
cy.visit("/svc-unit-models/1"); cy.visit("/svc-unit-models/1");
cy.url().should("include", "svc-unit-models/1"); cy.url().should("include", "svc-unit-models/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=number]"); cy.get("[data-cy=name]");
cy.visit("/svc-loaners"); cy.visit("/svc-loaners");
cy.url().should("include", "/svc-loaners"); cy.url().should("include", "/svc-loaners");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=loanUnitsTable]"); cy.get("[data-cy=loanUnitsTable]");
cy.visit("/svc-loaners/1"); cy.visit("/svc-loaners/1");
cy.url().should("include", "/svc-loaners/1"); cy.url().should("include", "/svc-loaners/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/svc-contracts"); cy.visit("/svc-contracts");
cy.url().should("include", "/svc-contracts"); cy.url().should("include", "/svc-contracts");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=contractsTable]"); cy.get("[data-cy=contractsTable]");
cy.visit("/svc-contracts/1"); cy.visit("/svc-contracts/1");
cy.url().should("include", "/svc-contracts/1"); cy.url().should("include", "/svc-contracts/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/svc-projects"); cy.visit("/svc-projects");
cy.url().should("include", "/svc-projects"); cy.url().should("include", "/svc-projects");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=projectsTable]"); cy.get("[data-cy=projectsTable]");
cy.visit("/svc-projects/1"); cy.visit("/svc-projects/1");
cy.url().should("include", "/svc-projects/1"); cy.url().should("include", "/svc-projects/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/svc-csr"); cy.visit("/svc-csr");
cy.url().should("include", "/svc-csr"); cy.url().should("include", "/svc-csr");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=csrTable]"); cy.get("[data-cy=csrTable]");
cy.visit("/svc-csr/1"); cy.visit("/svc-csr/1");
cy.url().should("include", "/svc-csr/1"); cy.url().should("include", "/svc-csr/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
//################# INVENTORY //################# INVENTORY
cy.visit("/inv-parts"); cy.visit("/inv-parts");
cy.url().should("include", "/inv-parts"); cy.url().should("include", "/inv-parts");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=partsTable]"); cy.get("[data-cy=partsTable]");
cy.visit("/inv-parts/1"); cy.visit("/inv-parts/1");
cy.url().should("include", "/inv-parts/1"); cy.url().should("include", "/inv-parts/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=partName]"); cy.get("[data-cy=name]");
cy.visit("/inv-purchase-orders"); cy.visit("/inv-purchase-orders");
cy.url().should("include", "/inv-purchase-orders"); cy.url().should("include", "/inv-purchase-orders");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=purchaseordersTable]"); cy.get("[data-cy=purchaseordersTable]");
cy.visit("/inv-purchase-orders/1"); cy.visit("/inv-purchase-orders/1");
cy.url().should("include", "/inv-purchase-orders/1"); cy.url().should("include", "/inv-purchase-orders/1");
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-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");
cy.get("[data-cy=partInventoryTable]"); cy.get("[data-cy=partInventoryTable]");
cy.visit("/inv-part-inventory-transactions"); cy.visit("/inv-part-inventory-transactions");
cy.url().should( cy.url().should("include", "/inv-part-inventory-transactions");
"include", cy.get("[data-cy=generalerror]").should("not.exist");
"/inv-part-inventory-transactions"
);
cy.get("[data-cy=generalerror]").should('not.exist');
cy.get("[data-cy=partInventoryTransactionsTable]"); cy.get("[data-cy=partInventoryTransactionsTable]");
cy.visit("/inv-part-assemblies"); cy.visit("/inv-part-assemblies");
cy.url().should("include", "/inv-part-assemblies"); cy.url().should("include", "/inv-part-assemblies");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=partassemblysTable]"); cy.get("[data-cy=partassemblysTable]");
cy.visit("/inv-part-assemblies/1"); cy.visit("/inv-part-assemblies/1");
cy.url().should("include", "/inv-part-assemblies/1"); cy.url().should("include", "/inv-part-assemblies/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/inv-part-serials/1"); cy.visit("/inv-part-serials/1");
cy.url().should("include", "/inv-part-serials/1"); cy.url().should("include", "/inv-part-serials/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedPartId]"); cy.get("[data-cy=selectedPartId]");
cy.visit("/inv-part-stock-levels/1"); cy.visit("/inv-part-stock-levels/1");
cy.url().should("include", "/inv-part-stock-levels/1"); cy.url().should("include", "/inv-part-stock-levels/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedPartId]"); cy.get("[data-cy=selectedPartId]");
cy.visit("/inv-part-warehouses"); cy.visit("/inv-part-warehouses");
cy.url().should("include", "/inv-part-warehouses"); cy.url().should("include", "/inv-part-warehouses");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=partwarehousesTable]"); cy.get("[data-cy=partwarehousesTable]");
cy.visit("/inv-part-warehouses/1"); cy.visit("/inv-part-warehouses/1");
cy.url().should("include", "/inv-part-warehouses/1"); cy.url().should("include", "/inv-part-warehouses/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/inv-part-adjustment"); cy.visit("/inv-part-adjustment");
cy.url().should("include", "/inv-part-adjustment"); cy.url().should("include", "/inv-part-adjustment");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=description]"); cy.get("[data-cy=description]");
//################# VENDORS //################# VENDORS
cy.visit("/vendors"); cy.visit("/vendors");
cy.url().should("include", "/vendors"); cy.url().should("include", "/vendors");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=vendorsTable]"); cy.get("[data-cy=vendorsTable]");
cy.visit("/vendors/1"); cy.visit("/vendors/1");
cy.url().should("include", "vendors/1"); cy.url().should("include", "vendors/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
//################# ACCOUNTING //################# ACCOUNTING
cy.visit("/acc-service-rates"); cy.visit("/acc-service-rates");
cy.url().should("include", "/acc-service-rates"); cy.url().should("include", "/acc-service-rates");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=serviceRatesTable]"); cy.get("[data-cy=serviceRatesTable]");
cy.visit("/acc-service-rates/1"); cy.visit("/acc-service-rates/1");
cy.url().should("include", "/acc-service-rates/1"); cy.url().should("include", "/acc-service-rates/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/acc-travel-rates"); cy.visit("/acc-travel-rates");
cy.url().should("include", "/acc-travel-rates"); cy.url().should("include", "/acc-travel-rates");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=travelRatesTable]"); cy.get("[data-cy=travelRatesTable]");
cy.visit("/acc-travel-rates/1"); cy.visit("/acc-travel-rates/1");
cy.url().should("include", "/acc-travel-rates/1"); cy.url().should("include", "/acc-travel-rates/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/acc-tax-codes"); cy.visit("/acc-tax-codes");
cy.url().should("include", "/acc-tax-codes"); cy.url().should("include", "/acc-tax-codes");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=taxCodesTable]"); cy.get("[data-cy=taxCodesTable]");
cy.visit("/acc-tax-codes/1"); cy.visit("/acc-tax-codes/1");
cy.url().should("include", "/acc-tax-codes/1"); cy.url().should("include", "/acc-tax-codes/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
//################# ADMIN //################# ADMIN
cy.visit("/adm-global-settings"); cy.visit("/adm-global-settings");
cy.url().should("include", "/adm-global-settings"); cy.url().should("include", "/adm-global-settings");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=filterCaseSensitive]"); cy.get("[data-cy=filterCaseSensitive]");
cy.visit("/adm-global-select-templates"); cy.visit("/adm-global-select-templates");
cy.url().should( cy.url().should("include", "/adm-global-select-templates");
"include", cy.get("[data-cy=generalerror]").should("not.exist");
"/adm-global-select-templates"
);
cy.get("[data-cy=generalerror]").should('not.exist');
cy.get("[data-cy=selectTemplate]"); cy.get("[data-cy=selectTemplate]");
cy.visit("/adm-global-logo"); cy.visit("/adm-global-logo");
cy.url().should("include", "/adm-global-logo"); cy.url().should("include", "/adm-global-logo");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=uploadSmall]"); cy.get("[data-cy=uploadSmall]");
cy.visit("/adm-global-seeds"); cy.visit("/adm-global-seeds");
cy.url().should("include", "/adm-global-seeds"); cy.url().should("include", "/adm-global-seeds");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=purchaseOrderNextSerial]"); cy.get("[data-cy=purchaseOrderNextSerial]");
cy.visit("/adm-license"); cy.visit("/adm-license");
cy.url().should("include", "/adm-license"); cy.url().should("include", "/adm-license");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=licenseForm]"); cy.get("[data-cy=licenseForm]");
cy.visit("/adm-users"); cy.visit("/adm-users");
cy.url().should("include", "/adm-users"); cy.url().should("include", "/adm-users");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=usersTable]"); cy.get("[data-cy=usersTable]");
cy.visit("/adm-users/1"); cy.visit("/adm-users/1");
cy.url().should("include", "/adm-users/1"); cy.url().should("include", "/adm-users/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/adm-translations"); cy.visit("/adm-translations");
cy.url().should("include", "/adm-translations"); cy.url().should("include", "/adm-translations");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=transTable]"); cy.get("[data-cy=transTable]");
cy.visit("/adm-translations/1"); cy.visit("/adm-translations/1");
cy.url().should("include", "/adm-translations/1"); cy.url().should("include", "/adm-translations/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/adm-report-templates"); cy.visit("/adm-report-templates");
cy.url().should("include", "/adm-report-templates"); cy.url().should("include", "/adm-report-templates");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=reportTemplatesTable]"); cy.get("[data-cy=reportTemplatesTable]");
cy.visit("/report-edit/1"); cy.visit("/report-edit/1");
cy.url().should("include", "/report-edit/1"); cy.url().should("include", "/report-edit/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=viewChange]"); cy.get("[data-cy=viewChange]");
cy.visit("/adm-attachments"); cy.visit("/adm-attachments");
cy.url().should("include", "/adm-attachments"); cy.url().should("include", "/adm-attachments");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=attachTable]"); cy.get("[data-cy=attachTable]");
cy.visit("/adm-history"); cy.visit("/adm-history");
cy.url().should("include", "/adm-history"); cy.url().should("include", "/adm-history");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=historyTable]"); cy.get("[data-cy=historyTable]");
cy.visit("/adm-import"); cy.visit("/adm-import");
cy.url().should("include", "/adm-import"); cy.url().should("include", "/adm-import");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=ayaType]"); cy.get("[data-cy=ayaType]");
//################# OPERATIONS //################# OPERATIONS
cy.visit("/ops-backup"); cy.visit("/ops-backup");
cy.url().should("include", "/ops-backup"); cy.url().should("include", "/ops-backup");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=backupTable]"); cy.get("[data-cy=backupTable]");
cy.visit("/ops-server-state"); cy.visit("/ops-server-state");
cy.url().should("include", "/ops-server-state"); cy.url().should("include", "/ops-server-state");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=serverStateOpen]"); cy.get("[data-cy=serverStateOpen]");
cy.visit("/ops-jobs"); cy.visit("/ops-jobs");
cy.url().should("include", "/ops-jobs"); cy.url().should("include", "/ops-jobs");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=jobsTable]"); cy.get("[data-cy=jobsTable]");
cy.visit("/ops-log"); cy.visit("/ops-log");
cy.url().should("include", "/ops-log"); cy.url().should("include", "/ops-log");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedLog]"); cy.get("[data-cy=selectedLog]");
cy.visit("/ops-metrics"); cy.visit("/ops-metrics");
cy.url().should("include", "/ops-metrics"); cy.url().should("include", "/ops-metrics");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=selectedTimePeriod]"); cy.get("[data-cy=selectedTimePeriod]");
cy.visit("/ops-profile"); cy.visit("/ops-profile");
cy.url().should("include", "/ops-profile"); cy.url().should("include", "/ops-profile");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=profileCard]"); cy.get("[data-cy=profileCard]");
cy.visit("/ops-notification-settings"); cy.visit("/ops-notification-settings");
cy.url().should("include", "/ops-notification-settings"); cy.url().should("include", "/ops-notification-settings");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=smtpDeliveryActive]"); cy.get("[data-cy=smtpDeliveryActive]");
cy.visit("/ops-notify-queue"); cy.visit("/ops-notify-queue");
cy.url().should("include", "/ops-notify-queue"); cy.url().should("include", "/ops-notify-queue");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=notifyQueueTable]"); cy.get("[data-cy=notifyQueueTable]");
cy.visit("/ops-view-configuration"); cy.visit("/ops-view-configuration");
cy.url().should("include", "/ops-view-configuration"); cy.url().should("include", "/ops-view-configuration");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=configCard]"); cy.get("[data-cy=configCard]");
//################# MISC //################# MISC
cy.visit("/about"); cy.visit("/about");
cy.url().should("include", "/about"); cy.url().should("include", "/about");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=versionCard]"); cy.get("[data-cy=versionCard]");
cy.visit("/applog"); cy.visit("/applog");
cy.url().should("include", "/applog"); cy.url().should("include", "/applog");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=logText]"); cy.get("[data-cy=logText]");
cy.visit("/customize/Customer"); cy.visit("/customize/Customer");
cy.url().should("include", "/customize/Customer"); cy.url().should("include", "/customize/Customer");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=customizeForm]"); cy.get("[data-cy=customizeForm]");
cy.visit("/data-list-column-view/CustomerDataList"); cy.visit("/data-list-column-view/CustomerDataList");
cy.url().should( cy.url().should("include", "/data-list-column-view/CustomerDataList");
"include", cy.get("[data-cy=generalerror]").should("not.exist");
"/data-list-column-view/CustomerDataList"
);
cy.get("[data-cy=generalerror]").should('not.exist');
cy.get("[data-cy=dlcForm]"); cy.get("[data-cy=dlcForm]");
cy.visit("/home-reviews/2/1"); cy.visit("/home-reviews/2/1");
cy.url().should("include", "/home-reviews/2/1"); cy.url().should("include", "/home-reviews/2/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=reviewsTable]"); cy.get("[data-cy=reviewsTable]");
cy.visit("/history/3/1"); cy.visit("/history/3/1");
cy.url().should("include", "/history/3/1"); cy.url().should("include", "/history/3/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=timeLine]"); cy.get("[data-cy=timeLine]");
cy.visit("/open/8/1"); cy.visit("/open/8/1");
cy.url().should("include", "/cust-customers/1"); cy.url().should("include", "/cust-customers/1");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]"); cy.get("[data-cy=name]");
cy.visit("/NOTFOUND"); cy.visit("/NOTFOUND");
@@ -505,32 +498,27 @@ describe("SMOKE", () => {
cy.get("[data-cy=navicon]").click(); cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click(); cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login"); cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
//CUSTOMER PAGES //CUSTOMER PAGES
cy.get("input[name=username]") cy.get("input[name=username]").clear().type("Customer");
.clear() cy.get("input[name=password]").clear().type("Customer{enter}");
.type("Customer");
cy.get("input[name=password]")
.clear()
.type("Customer{enter}");
cy.url().should("include", "/customer-csr"); cy.url().should("include", "/customer-csr");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=csrTable]"); cy.get("[data-cy=csrTable]");
cy.visit("/customer-workorders"); cy.visit("/customer-workorders");
cy.url().should("include", "/customer-workorders"); cy.url().should("include", "/customer-workorders");
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]");
//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();
cy.url().should("include", "/login"); cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should('not.exist'); cy.get("[data-cy=generalerror]").should("not.exist");
//----------------------------------------------------- //-----------------------------------------------------
}); });
}); });