Files
raven-test/e2e/tests/regression/1-smoke/10-customer-user.js
2021-12-19 20:20:49 +00:00

33 lines
1.0 KiB
JavaScript

// Basic smoke test, visit every form to ensure they load
describe("SMOKE CUSTOMER SECTION", () => {
it("Customer User forms open without error", () => {
cy.visit("/login");
//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]");
cy.visit("/customer-workorders");
cy.url().should("include", "/customer-workorders");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=workordersTable]");
//todo:
//path: "/customer-workorders/:recordid",
//path: "/customer-csr/:recordid"
//LOGOUT
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=logout]").click();
cy.url().should("include", "/login");
cy.get("[data-cy=generalerror]").should("not.exist");
//-----------------------------------------------------
});
});