25 lines
793 B
JavaScript
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");
|
|
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|