diff --git a/e2e/tests/regression/2-report/001-run-report.cy.js b/e2e/tests/regression/2-report/001-run-report.cy.js new file mode 100644 index 0000000..c743208 --- /dev/null +++ b/e2e/tests/regression/2-report/001-run-report.cy.js @@ -0,0 +1,52 @@ + +describe("Report generation", () => { + it("Customer report opens without error", () => { + cy.ayLogin("bizadmin"); + + //################# print customer report + cy.visit("/cust-customers"); + cy.url().should("include", "/cust-customers"); + cy.get("[data-cy=generalerror]").should("not.exist"); + cy.get("[data-cy=customersTable]"); + + cy.visit("/cust-customers/1"); + cy.url().should("include", "/cust-customers/1"); + cy.get("[data-cy=generalerror]").should("not.exist"); + cy.get("[data-cy=name]"); + + + + // cy.visit("/cust-customer-notes/1"); + // cy.url().should("include", "/cust-customer-notes/1"); + // cy.get("[data-cy=generalerror]").should("not.exist"); + // cy.get("[data-cy=clickThru]"); + + // cy.visit("/cust-customer-note/0"); + // cy.url().should("include", "/cust-customer-note/0"); + // cy.get("[data-cy=generalerror]").should("not.exist"); + // cy.get("[data-cy=notes]"); + + // cy.visit("/cust-head-offices"); + // cy.url().should("include", "/cust-head-offices"); + // cy.get("[data-cy=generalerror]").should("not.exist"); + // cy.get("[data-cy=headofficesTable]"); + + // cy.visit("/cust-head-offices/1"); + // cy.url().should("include", "cust-head-offices/1"); + // cy.get("[data-cy=generalerror]").should("not.exist"); + // cy.get("[data-cy=name]"); + + // cy.visit("/cust-users"); + // cy.url().should("include", "/cust-users"); + // cy.get("[data-cy=generalerror]").should("not.exist"); + // cy.get("[data-cy=custUsersTable]"); + + // cy.visit("/cust-users/0"); + // cy.url().should("include", "/cust-users/0"); + // cy.get("[data-cy=customerId]"); + + + + //----------------------------------------------------- + }); +}); diff --git a/e2e/tests/regression/2-accounting-user/000-setup.cy.js b/e2e/tests/regression/3-accounting-user/000-setup.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/000-setup.cy.js rename to e2e/tests/regression/3-accounting-user/000-setup.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0100-search.cy.js b/e2e/tests/regression/3-accounting-user/0100-search.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0100-search.cy.js rename to e2e/tests/regression/3-accounting-user/0100-search.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0200-memo.cy.js b/e2e/tests/regression/3-accounting-user/0200-memo.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0200-memo.cy.js rename to e2e/tests/regression/3-accounting-user/0200-memo.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0300-reminder.cy.js b/e2e/tests/regression/3-accounting-user/0300-reminder.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0300-reminder.cy.js rename to e2e/tests/regression/3-accounting-user/0300-reminder.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0400-notify-subscribe.cy.js b/e2e/tests/regression/3-accounting-user/0400-notify-subscribe.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0400-notify-subscribe.cy.js rename to e2e/tests/regression/3-accounting-user/0400-notify-subscribe.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0500-contract-create-review-history.cy.js b/e2e/tests/regression/3-accounting-user/0500-contract-create-review-history.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0500-contract-create-review-history.cy.js rename to e2e/tests/regression/3-accounting-user/0500-contract-create-review-history.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0600-service-rate.cy.js b/e2e/tests/regression/3-accounting-user/0600-service-rate.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0600-service-rate.cy.js rename to e2e/tests/regression/3-accounting-user/0600-service-rate.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0700-travel-rate.cy.js b/e2e/tests/regression/3-accounting-user/0700-travel-rate.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0700-travel-rate.cy.js rename to e2e/tests/regression/3-accounting-user/0700-travel-rate.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0800-tax-code.cy.js b/e2e/tests/regression/3-accounting-user/0800-tax-code.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0800-tax-code.cy.js rename to e2e/tests/regression/3-accounting-user/0800-tax-code.cy.js diff --git a/e2e/tests/regression/2-accounting-user/0900-notification-arrived.cy.js b/e2e/tests/regression/3-accounting-user/0900-notification-arrived.cy.js similarity index 100% rename from e2e/tests/regression/2-accounting-user/0900-notification-arrived.cy.js rename to e2e/tests/regression/3-accounting-user/0900-notification-arrived.cy.js diff --git a/e2e/tests/regression/3-service-user/0100-workorder.cy.js b/e2e/tests/regression/4-service-user/0100-workorder.cy.js similarity index 100% rename from e2e/tests/regression/3-service-user/0100-workorder.cy.js rename to e2e/tests/regression/4-service-user/0100-workorder.cy.js