This commit is contained in:
@@ -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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
|
||||
28
e2e/tests/regression/1-smoke/014-nav-menu.js
Normal file
28
e2e/tests/regression/1-smoke/014-nav-menu.js
Normal 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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user