24 lines
685 B
JavaScript
24 lines
685 B
JavaScript
// Basic smoke test, visit every form to ensure they load
|
|
|
|
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.visit("/svc-quotes");
|
|
cy.url().should("include", "/svc-quotes");
|
|
cy.get("[data-cy=generalerror]").should("not.exist");
|
|
cy.get("[data-cy=quotesTable]");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|