This commit is contained in:
2021-12-20 19:12:32 +00:00
parent c08b169919
commit f3ff88229e
20 changed files with 99 additions and 229 deletions

View File

@@ -2,15 +2,7 @@
describe("SMOKE HOME SECTION", () => {
it("Home forms opens 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
//################# HOME
cy.visit("/home-dashboard");

View File

@@ -2,15 +2,7 @@
describe("SMOKE CUSTOMER SECTION", () => {
it("Customer section forms opens 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
//################# CUSTOMERS
cy.visit("/cust-customers");

View File

@@ -2,15 +2,7 @@
describe("SMOKE SERVICE MISC SECTION", () => {
it("Service MISC 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
//################# SERVICE
cy.visit("/svc-schedule");
cy.url().should("include", "/svc-schedule");

View File

@@ -2,15 +2,7 @@
describe("SMOKE SERVICE WO SECTION", () => {
it("Service WO 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
//################# SERVICE WO
cy.visit("/svc-workorders");

View File

@@ -2,14 +2,7 @@
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.ayLogin("admin");
cy.visit("/svc-quotes");

View File

@@ -2,15 +2,7 @@
describe("SMOKE SERVICE PM SECTION", () => {
it("Service pm 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
cy.visit("/svc-pms");
cy.url().should("include", "/svc-pms");

View File

@@ -2,15 +2,7 @@
describe("SMOKE INVENTORY", () => {
it("Inventory 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.url().should("include", "/ay-evaluate");
cy.ayLogin("admin");
//################# INVENTORY
cy.visit("/inv-parts");

View File

@@ -2,17 +2,7 @@
describe("SMOKE VENDORS SECTION", () => {
it("Vendors 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.url().should("include", "/ay-evaluate");
//################# VENDORS
cy.ayLogin("admin");
cy.visit("/vendors");
cy.url().should("include", "/vendors");
cy.get("[data-cy=generalerror]").should("not.exist");

View File

@@ -2,17 +2,7 @@
describe("SMOKE", () => {
it("Every form opens 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.url().should("include", "/ay-evaluate");
//################# ACCOUNTING
cy.ayLogin("accounting");
cy.visit("/acc-service-rates");
cy.url().should("include", "/acc-service-rates");

View File

@@ -2,16 +2,7 @@
describe("SMOKE ADMIN SECTION", () => {
it("Admin 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.url().should("include", "/ay-evaluate");
//################# ADMIN
cy.ayLogin("admin");
cy.visit("/adm-global-settings");
cy.url().should("include", "/adm-global-settings");
cy.get("[data-cy=generalerror]").should("not.exist");

View File

@@ -2,17 +2,7 @@
describe("SMOKE OPERATIONS SECTION", () => {
it("Ops 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.url().should("include", "/ay-evaluate");
//################# OPERATIONS
cy.ayLogin("admin");
cy.visit("/ops-backup");
cy.url().should("include", "/ops-backup");
cy.get("[data-cy=generalerror]").should("not.exist");

View File

@@ -2,17 +2,7 @@
describe("SMOKE MISC", () => {
it("Misc. 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.url().should("include", "/ay-evaluate");
cy.url().should("include", "/ay-evaluate");
//################# MISC
cy.ayLogin("admin");
cy.visit("/about");
cy.url().should("include", "/about");
cy.get("[data-cy=generalerror]").should("not.exist");

View File

@@ -2,13 +2,8 @@
describe("SMOKE CUSTOMER SECTION", () => {
it("Customer User forms open without error", () => {
cy.visit("/login");
cy.ayLogin("accounting", "/customer-csr");
//CUSTOMER PAGES
cy.get("input[name=username]").clear().type("Customer");
cy.get("input[name=password]").clear().type("Customer{enter}");
cy.url().should("include", "/customer-csr");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=csrTable]");
@@ -17,7 +12,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=workordersTable]");
//todo:
//todo:
//path: "/customer-workorders/:recordid",
//path: "/customer-csr/:recordid"