mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix C291954, C291955, C291993 and C291995 (#6149)
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
This commit is contained in:
@@ -47,8 +47,8 @@ describe('People Groups Cloud Component', () => {
|
|||||||
hrGroup = await groupIdentityService.getGroupInfoByGroupName('hr');
|
hrGroup = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||||
testGroup = await groupIdentityService.getGroupInfoByGroupName('testgroup');
|
testGroup = await groupIdentityService.getGroupInfoByGroupName('testgroup');
|
||||||
|
|
||||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER]);
|
testUser = await identityService.createIdentityUserWithRole([identityService.ROLES.ACTIVITI_USER]);
|
||||||
apsUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER]);
|
apsUser = await identityService.createIdentityUserWithRole([identityService.ROLES.ACTIVITI_USER]);
|
||||||
await identityService.addUserToGroup(testUser.idIdentityService, testGroup.id);
|
await identityService.addUserToGroup(testUser.idIdentityService, testGroup.id);
|
||||||
await identityService.addUserToGroup(apsUser.idIdentityService, hrGroup.id);
|
await identityService.addUserToGroup(apsUser.idIdentityService, hrGroup.id);
|
||||||
noRoleUser = await identityService.createIdentityUser();
|
noRoleUser = await identityService.createIdentityUser();
|
||||||
@@ -137,5 +137,5 @@ describe('People Groups Cloud Component', () => {
|
|||||||
await groupCloudComponentPage.searchGroupsToExisting(groupNoRole.name);
|
await groupCloudComponentPage.searchGroupsToExisting(groupNoRole.name);
|
||||||
await groupCloudComponentPage.checkGroupIsNotDisplayed(groupNoRole.name);
|
await groupCloudComponentPage.checkGroupIsNotDisplayed(groupNoRole.name);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -28,7 +28,7 @@ import {
|
|||||||
TasksService,
|
TasksService,
|
||||||
ApiService,
|
ApiService,
|
||||||
IdentityService,
|
IdentityService,
|
||||||
GroupIdentityService, RolesService
|
GroupIdentityService
|
||||||
} from '@alfresco/adf-testing';
|
} from '@alfresco/adf-testing';
|
||||||
|
|
||||||
describe('Start Task - Group Cloud Component', () => {
|
describe('Start Task - Group Cloud Component', () => {
|
||||||
@@ -46,7 +46,6 @@ describe('Start Task - Group Cloud Component', () => {
|
|||||||
const apiService = new ApiService();
|
const apiService = new ApiService();
|
||||||
const identityService = new IdentityService(apiService);
|
const identityService = new IdentityService(apiService);
|
||||||
const groupIdentityService = new GroupIdentityService(apiService);
|
const groupIdentityService = new GroupIdentityService(apiService);
|
||||||
const rolesService = new RolesService(apiService);
|
|
||||||
|
|
||||||
const bothGroupsTaskName = StringUtil.generateRandomString(5);
|
const bothGroupsTaskName = StringUtil.generateRandomString(5);
|
||||||
const oneGroupTaskName = StringUtil.generateRandomString(5);
|
const oneGroupTaskName = StringUtil.generateRandomString(5);
|
||||||
@@ -56,16 +55,15 @@ describe('Start Task - Group Cloud Component', () => {
|
|||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
|
|
||||||
testUser = await identityService.createIdentityUser();
|
testUser = await identityService.createIdentityUser();
|
||||||
apsUser = await identityService.createIdentityUser();
|
|
||||||
|
|
||||||
hrGroup = await groupIdentityService.getGroupInfoByGroupName('hr');
|
hrGroup = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||||
testGroup = await groupIdentityService.createIdentityGroup();
|
|
||||||
|
|
||||||
const apsAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.ACTIVITI_USER);
|
apsUser = await identityService.createIdentityUser();
|
||||||
await groupIdentityService.assignRole(testGroup.id, apsAdminRoleId, identityService.ROLES.ACTIVITI_USER);
|
testGroup = await groupIdentityService.getGroupInfoByGroupName('testgroup');
|
||||||
|
|
||||||
await identityService.addUserToGroup(testUser.idIdentityService, testGroup.id);
|
await identityService.addUserToGroup(testUser.idIdentityService, hrGroup.id);
|
||||||
await identityService.addUserToGroup(apsUser.idIdentityService, hrGroup.id);
|
await identityService.addUserToGroup(apsUser.idIdentityService, testGroup.id);
|
||||||
|
|
||||||
|
await loginSSOPage.login(testUser.email, testUser.password);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@@ -84,7 +82,6 @@ describe('Start Task - Group Cloud Component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await loginSSOPage.login(testUser.email, testUser.password);
|
|
||||||
await navigationBarPage.navigateToProcessServicesCloudPage();
|
await navigationBarPage.navigateToProcessServicesCloudPage();
|
||||||
await appListCloudComponent.checkApsContainer();
|
await appListCloudComponent.checkApsContainer();
|
||||||
await appListCloudComponent.checkAppIsDisplayed(simpleApp);
|
await appListCloudComponent.checkAppIsDisplayed(simpleApp);
|
||||||
@@ -94,10 +91,6 @@ describe('Start Task - Group Cloud Component', () => {
|
|||||||
await startTask.checkFormIsDisplayed();
|
await startTask.checkFormIsDisplayed();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
|
||||||
await navigationBarPage.clickLogoutButton();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('[C291954] Should be able to select/delete an group for a standalone task', async () => {
|
it('[C291954] Should be able to select/delete an group for a standalone task', async () => {
|
||||||
await peopleCloudComponent.clearAssignee();
|
await peopleCloudComponent.clearAssignee();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user