This commit is contained in:
2021-12-21 16:19:38 +00:00
parent f18cea9ef3
commit 3644da98ad
21 changed files with 105 additions and 171 deletions

View File

@@ -96,11 +96,6 @@ describe("SMOKE HOME SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=pickListSelectedUserId]");
//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");
//-----------------------------------------------------
});

View File

@@ -44,11 +44,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
// cy.url().should("include", "/cust-users/0");
// cy.get("[data-cy=customerId]");
//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");
//-----------------------------------------------------
});

View File

@@ -75,11 +75,7 @@ describe("SMOKE INVENTORY", () => {
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=description]");
//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");
//-----------------------------------------------------
});

View File

@@ -13,12 +13,7 @@ describe("SMOKE VENDORS SECTION", () => {
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");
//-----------------------------------------------------
});
});

View File

@@ -34,11 +34,7 @@ describe("SMOKE", () => {
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");
//-----------------------------------------------------
});

View File

@@ -73,11 +73,7 @@ describe("SMOKE ADMIN SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=ayaType]");
//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");
//-----------------------------------------------------
});

View File

@@ -48,11 +48,6 @@ describe("SMOKE OPERATIONS SECTION", () => {
cy.get("[data-cy=generalerror]").should("not.exist");
cy.get("[data-cy=configCard]");
//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");
//-----------------------------------------------------
});

View File

@@ -45,11 +45,6 @@ describe("SMOKE MISC", () => {
cy.url().should("include", "/no-features-available");
cy.get("[data-cy=NFA]");
//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");
//-----------------------------------------------------
});

View File

@@ -16,11 +16,7 @@ describe("SMOKE CUSTOMER SECTION", () => {
//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");
//-----------------------------------------------------
});

View File

@@ -0,0 +1,28 @@
// Basic smoke test, visit every form to ensure they load
describe("SMOKE NAV", () => {
it("Nav and menu functions correctly", () => {
cy.ayLogin("admin");
cy.get("[data-cy=navicon]").click();
cy.get("[data-cy=home]").click();
cy.get("[data-cy='nav/home-memos']").click();
// 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");
//-----------------------------------------------------
});
});