mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix people-group-cloud-filter-component.e2e.ts (#5612)
* Fix people-group-cloud-filter-component.e2e.ts * Fix lint
This commit is contained in:
@@ -38,6 +38,7 @@ describe('People Groups Cloud Component', () => {
|
|||||||
|
|
||||||
let apsUser;
|
let apsUser;
|
||||||
let testUser;
|
let testUser;
|
||||||
|
let devopsUser;
|
||||||
let activitiUser;
|
let activitiUser;
|
||||||
let noRoleUser;
|
let noRoleUser;
|
||||||
let groupUser;
|
let groupUser;
|
||||||
@@ -56,6 +57,7 @@ describe('People Groups Cloud Component', () => {
|
|||||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
||||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
||||||
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
||||||
|
devopsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_DEVOPS]);
|
||||||
noRoleUser = await identityService.createIdentityUser();
|
noRoleUser = await identityService.createIdentityUser();
|
||||||
|
|
||||||
rolesService = new RolesService(apiService);
|
rolesService = new RolesService(apiService);
|
||||||
@@ -72,7 +74,8 @@ describe('People Groups Cloud Component', () => {
|
|||||||
|
|
||||||
groupNoRole = await groupIdentityService.createIdentityGroup();
|
groupNoRole = await groupIdentityService.createIdentityGroup();
|
||||||
|
|
||||||
users = [`${apsUser.idIdentityService}`, `${activitiUser.idIdentityService}`, `${noRoleUser.idIdentityService}`, `${testUser.idIdentityService}`];
|
users = [`${apsUser.idIdentityService}`, `${activitiUser.idIdentityService}`, `${noRoleUser.idIdentityService}`,
|
||||||
|
`${testUser.idIdentityService}`, `${devopsUser.idIdentityService}`];
|
||||||
groups = [`${groupUser.id}`, `${groupAdmin.id}`, `${groupNoRole.id}`];
|
groups = [`${groupUser.id}`, `${groupAdmin.id}`, `${groupNoRole.id}`];
|
||||||
|
|
||||||
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||||
@@ -121,10 +124,11 @@ describe('People Groups Cloud Component', () => {
|
|||||||
await peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.ROLES.ACTIVITI_USER}"]`);
|
await peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.ROLES.ACTIVITI_USER}"]`);
|
||||||
await peopleCloudComponent.searchAssignee(apsUser.lastName);
|
await peopleCloudComponent.searchAssignee(apsUser.lastName);
|
||||||
await peopleCloudComponent.checkUserIsDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
await peopleCloudComponent.checkUserIsDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
||||||
await peopleCloudComponent.searchAssignee(testUser.lastName);
|
await peopleCloudComponent.searchAssignee(devopsUser.lastName);
|
||||||
|
await peopleCloudComponent.checkUserIsNotDisplayed(`${devopsUser.firstName} ${devopsUser.lastName}`);
|
||||||
await peopleCloudComponent.checkUserIsNotDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
await peopleCloudComponent.checkUserIsNotDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
||||||
await peopleCloudComponent.checkUserIsNotDisplayed(`${testUser.firstName} ${testUser.lastName}`);
|
|
||||||
await peopleCloudComponent.searchAssignee(noRoleUser.lastName);
|
await peopleCloudComponent.searchAssignee(noRoleUser.lastName);
|
||||||
|
await browser.sleep(5000);
|
||||||
await peopleCloudComponent.checkUserIsNotDisplayed(`${noRoleUser.firstName} ${noRoleUser.lastName}`);
|
await peopleCloudComponent.checkUserIsNotDisplayed(`${noRoleUser.firstName} ${noRoleUser.lastName}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user