Files
raven-test/e2e/tests/regression/1-smoke/008-vendors.js
2021-12-20 17:35:33 +00:00

35 lines
1.0 KiB
JavaScript

// Basic smoke test, visit every form to ensure they load
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}`);
//################# VENDORS
cy.visit("/vendors");
cy.url().should("include", "/vendors");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=vendorsTable]");
cy.visit("/vendors/1");
cy.url().should("include", "vendors/1");
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=name]");
//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");
//-----------------------------------------------------
});
});