This commit is contained in:
@@ -50,8 +50,7 @@ CURRENT TODOs
|
||||
@@@@@@@@@@@ ROADMAP STAGE 2:
|
||||
|
||||
todo: add tests for the following:
|
||||
- Help link goes where it should
|
||||
- tricky but doable: https://github.com/cypress-io/cypress-example-recipes/tree/94ae974f41ef579cdd4cb184ed852b623ef252f9/examples/stubbing-spying__window
|
||||
|
||||
- datagrid
|
||||
paging
|
||||
filter selection works
|
||||
|
||||
@@ -689,10 +689,8 @@ export default function initialize() {
|
||||
window.$gz.role.hasRole([
|
||||
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.DispatchLimited,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.TechFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.TechLimited
|
||||
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.InventoryLimited
|
||||
])
|
||||
) {
|
||||
addNavItem(
|
||||
|
||||
27
ayanova/tests/e2e/specs/gz-data-table.js
Normal file
27
ayanova/tests/e2e/specs/gz-data-table.js
Normal file
@@ -0,0 +1,27 @@
|
||||
describe("GZ-DATA-TABLE", () => {
|
||||
it("Data table works", () => {
|
||||
cy.visit("/login");
|
||||
|
||||
cy.get("input[name=username]")
|
||||
.clear()
|
||||
.type("BizAdminFull");
|
||||
|
||||
// {enter} causes the form to submit
|
||||
cy.get("input[name=password]")
|
||||
.clear()
|
||||
.type("BizAdminFull{enter}");
|
||||
cy.url().should("include", "/home-dashboard");
|
||||
cy.visit("/widgets");
|
||||
cy.url().should("include", "/widgets");
|
||||
|
||||
// //navigate and confirm
|
||||
// //open nav and home menu
|
||||
// cy.get("[data-cy=navicon]").click();
|
||||
// cy.get("[data-cy=home]").click();
|
||||
// cy.get("[data-cy='nav/home-user-settings']").click();
|
||||
//
|
||||
// cy.get("[data-cy=contextmenu]").click();
|
||||
// cy.get("[data-cy='app:logout']").click();
|
||||
// cy.url().should("include", "/login");
|
||||
});
|
||||
});
|
||||
@@ -1,31 +1,6 @@
|
||||
// https://docs.cypress.io/api/introduction/api.html
|
||||
|
||||
describe("HELP DOCS", () => {
|
||||
it("Help docs are accessible", () => {
|
||||
cy.visit("http://localhost:7575/docs/");
|
||||
cy.contains("WELCOME TO AYANOVA");
|
||||
// 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}`);
|
||||
|
||||
// // we should be redirected to /dashboard
|
||||
// cy.url().should("include", "/home-dashboard");
|
||||
|
||||
// //navigate and confirm
|
||||
// //open nav and home menu
|
||||
// cy.get("[data-cy=navicon]").click();
|
||||
// cy.get("[data-cy=home]").click();
|
||||
// cy.get("[data-cy='nav/home-user-settings']").click();
|
||||
// cy.url().should("include", "/home-user-settings");
|
||||
// cy.get("[data-cy=contextmenu]").click();
|
||||
// cy.get("[data-cy='app:logout']").click();
|
||||
// cy.url().should("include", "/login");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user