hide license info in about from non staff users
This commit is contained in:
@@ -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");
|
||||
|
||||
//-----------------------------------------------------
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user