hide license info in about from non staff users

This commit is contained in:
2020-04-02 23:36:39 +00:00
parent 3420182a51
commit 3ddbdfd2a4
2 changed files with 88 additions and 38 deletions

View File

@@ -94,6 +94,36 @@ describe("Login", () => {
cy.get("[data-cy='app:logout']").click();
cy.url().should("include", "/login");
//-------------------------
//-----------------------------------------------------
//ENGLISH - CustomerLimited
cy.get("input[name=username]")
.clear()
.type("CustomerLimited");
// {enter} causes the form to submit
cy.get("input[name=password]")
.clear()
.type("CustomerLimited{enter}");
// we should be redirected to /customer-csr-list
cy.url().should("include", "/customer-csr-list");
//nav to about form
cy.get("[data-cy=contextmenu]").click();
cy.get('[data-cy="app:nav:abt"]').click();
//ensure there is translated text on the form
//title
cy.contains("About AyaNova");
//client user should *NOT* see the licensed to bit or licensed options
cy.contains("Licensed to").should("not.exist");
//LOGOUT
cy.get("[data-cy=contextmenu]").click();
cy.get("[data-cy='app:logout']").click();
cy.url().should("include", "/login");
//-----------------------------------------------------
});
});