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

25 lines
793 B
JavaScript

// Basic smoke test, visit every form to ensure they load
describe("SMOKE VENDORS SECTION", () => {
it("Vendors forms open without error", () => {
cy.ayLogin("admin");
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");
//-----------------------------------------------------
});
});