mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4576]Add new tests for application cloud component (#4873)
* Add a new test * Revert file * Fix lint errors * Add a wait * fix roles constant uppercase * fix lint
This commit is contained in:
committed by
Eugenio Romano
parent
069e4297ea
commit
5c5bb7f9b7
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { ApiService, IdentityService, LoginSSOPage, SettingsPage } from '@alfresco/adf-testing';
|
||||
import { ApiService, IdentityService, LoginSSOPage, SettingsPage, LocalStorageUtil, ApplicationsService } from '@alfresco/adf-testing';
|
||||
import { AppListCloudPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import resources = require('../util/resources');
|
||||
@@ -29,18 +29,31 @@ describe('Applications list', () => {
|
||||
const appListCloudPage = new AppListCloudPage();
|
||||
const simpleApp = resources.ACTIVITI7_APPS.SIMPLE_APP.name;
|
||||
let identityService: IdentityService;
|
||||
let applicationsService: ApplicationsService;
|
||||
let testUser;
|
||||
const appNames = [];
|
||||
let applications;
|
||||
const apiService = new ApiService(browser.params.config.oauth2.clientId, browser.params.config.bpmHost, browser.params.config.oauth2.host, 'BPM');
|
||||
|
||||
beforeAll(async (done) => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER, identityService.ROLES.APS_DEVOPS_USER]);
|
||||
await settingsPage.setProviderBpmSso(
|
||||
browser.params.config.bpmHost,
|
||||
browser.params.config.oauth2.host,
|
||||
browser.params.config.identityHost);
|
||||
loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
applicationsService = new ApplicationsService(apiService);
|
||||
applications = await applicationsService.getApplicationsByStatus('RUNNING');
|
||||
|
||||
applications.list.entries.forEach(async (app) => {
|
||||
appNames.push(app.entry.name.toLowerCase());
|
||||
});
|
||||
|
||||
await LocalStorageUtil.setConfigField('alfresco-deployed-apps', '[]');
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -50,11 +63,24 @@ describe('Applications list', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C310373] Should all the app with running state be displayed on dashboard when alfresco-deployed-apps is not used in config file', async () => {
|
||||
navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
appListCloudPage.checkApsContainer();
|
||||
|
||||
appListCloudPage.getNameOfTheApplications().then((list) => {
|
||||
expect(JSON.stringify(list) === JSON.stringify(appNames)).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C289910] Should the app be displayed on dashboard when is deployed on APS', () => {
|
||||
browser.refresh();
|
||||
navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
appListCloudPage.checkApsContainer();
|
||||
|
||||
appListCloudPage.checkAppIsDisplayed(simpleApp);
|
||||
appListCloudPage.goToApp(simpleApp);
|
||||
appListCloudPage.checkAppIsDisplayed(resources.ACTIVITI7_APPS.CANDIDATE_BASE_APP.name);
|
||||
appListCloudPage.checkAppIsDisplayed(resources.ACTIVITI7_APPS.SUB_PROCESS_APP.name);
|
||||
|
||||
expect(appListCloudPage.countAllApps()).toEqual(3);
|
||||
});
|
||||
});
|
||||
|
@@ -43,7 +43,7 @@ describe('Edit process filters cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -44,7 +44,7 @@ describe('Edit task filters cloud', () => {
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
tasksService = new TasksService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -56,7 +56,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -62,27 +62,27 @@ describe('People Groups Cloud Component', () => {
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
clientId = await groupIdentityService.getClientIdByApplicationName(resources.ACTIVITI7_APPS.SIMPLE_APP.name);
|
||||
groupActiviti = await groupIdentityService.createIdentityGroup();
|
||||
clientActivitiAdminRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.roles.activiti_admin);
|
||||
clientActivitiUserRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.roles.activiti_user);
|
||||
clientActivitiAdminRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
clientActivitiUserRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.ROLES.ACTIVITI_USER);
|
||||
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.activiti_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
||||
noRoleUser = await identityService.createIdentityUser();
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiUserRoleId, identityService.roles.activiti_user);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiUserRoleId, identityService.ROLES.ACTIVITI_USER);
|
||||
|
||||
groupAps = await groupIdentityService.createIdentityGroup();
|
||||
apsAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.roles.aps_admin);
|
||||
apsUserRoleId = await rolesService.getRoleIdByRoleName(identityService.roles.aps_user);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsAdminRoleId, identityService.roles.aps_admin);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsUserRoleId, identityService.roles.aps_user);
|
||||
activitiAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.roles.activiti_admin);
|
||||
await groupIdentityService.assignRole(groupActiviti.id, activitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
apsAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.APS_ADMIN);
|
||||
apsUserRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.APS_USER);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsAdminRoleId, identityService.ROLES.APS_ADMIN);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsUserRoleId, identityService.ROLES.APS_USER);
|
||||
activitiAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.ACTIVITI_ADMIN);
|
||||
await groupIdentityService.assignRole(groupActiviti.id, activitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
groupNoRole = await groupIdentityService.createIdentityGroup();
|
||||
|
||||
await groupIdentityService.addClientRole(groupAps.id, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
await groupIdentityService.addClientRole(groupActiviti.id, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
await groupIdentityService.addClientRole(groupAps.id, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
await groupIdentityService.addClientRole(groupActiviti.id, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
users = [`${apsUser.idIdentityService}`, `${activitiUser.idIdentityService}`, `${noRoleUser.idIdentityService}`, `${testUser.idIdentityService}`];
|
||||
groups = [`${groupAps.id}`, `${groupActiviti.id}`, `${groupNoRole.id}`];
|
||||
|
||||
@@ -134,7 +134,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('One role filtering', () => {
|
||||
peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.roles.aps_user}"]`);
|
||||
peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.ROLES.APS_USER}"]`);
|
||||
peopleCloudComponent.searchAssignee(apsUser.lastName);
|
||||
peopleCloudComponent.checkUserIsDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
||||
peopleCloudComponent.searchAssignee(activitiUser.lastName);
|
||||
@@ -144,7 +144,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('Multiple roles filtering', () => {
|
||||
peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.roles.aps_user}", "${identityService.roles.activiti_user}"]`);
|
||||
peopleGroupCloudComponentPage.enterPeopleRoles(`["${identityService.ROLES.APS_USER}", "${identityService.ROLES.ACTIVITI_USER}"]`);
|
||||
peopleCloudComponent.searchAssignee(apsUser.lastName);
|
||||
peopleCloudComponent.checkUserIsDisplayed(`${apsUser.firstName} ${apsUser.lastName}`);
|
||||
peopleCloudComponent.searchAssignee(activitiUser.lastName);
|
||||
@@ -172,7 +172,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('One role filtering', () => {
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.roles.aps_admin}"]`);
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.ROLES.APS_ADMIN}"]`);
|
||||
groupCloudComponentPage.searchGroups(groupAps.name);
|
||||
groupCloudComponentPage.checkGroupIsDisplayed(groupAps.name);
|
||||
groupCloudComponentPage.searchGroups(groupActiviti.name);
|
||||
@@ -182,7 +182,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('[C309996] Should be able to filter groups based on composite roles Activit_Admin', () => {
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.roles.activiti_admin}"]`);
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.ROLES.ACTIVITI_ADMIN}"]`);
|
||||
groupCloudComponentPage.searchGroups(groupActiviti.name);
|
||||
groupCloudComponentPage.checkGroupIsDisplayed(groupActiviti.name);
|
||||
groupCloudComponentPage.searchGroups(groupNoRole.name);
|
||||
@@ -192,7 +192,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('[C309996] Should be able to filter groups based on composite roles Aps_User', () => {
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.roles.aps_user}"]`);
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.ROLES.APS_USER}"]`);
|
||||
groupCloudComponentPage.searchGroups(groupActiviti.name);
|
||||
groupCloudComponentPage.checkGroupIsNotDisplayed(groupActiviti.name);
|
||||
groupCloudComponentPage.searchGroups(groupNoRole.name);
|
||||
@@ -202,7 +202,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('[C309996] Should be able to filter groups based on composite roles Activiti_User', () => {
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.roles.activiti_user}"]`);
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.ROLES.ACTIVITI_USER}"]`);
|
||||
groupCloudComponentPage.searchGroups(groupActiviti.name);
|
||||
groupCloudComponentPage.checkGroupIsNotDisplayed(groupActiviti.name);
|
||||
groupCloudComponentPage.searchGroups(groupNoRole.name);
|
||||
@@ -212,7 +212,7 @@ describe('People Groups Cloud Component', () => {
|
||||
});
|
||||
|
||||
it('Multiple roles filtering', () => {
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.roles.aps_admin}", "${identityService.roles.activiti_admin}"]`);
|
||||
peopleGroupCloudComponentPage.enterGroupRoles(`["${identityService.ROLES.APS_ADMIN}", "${identityService.ROLES.ACTIVITI_ADMIN}"]`);
|
||||
groupCloudComponentPage.searchGroups(groupActiviti.name);
|
||||
groupCloudComponentPage.checkGroupIsDisplayed(groupActiviti.name);
|
||||
groupCloudComponentPage.searchGroups(groupAps.name);
|
||||
|
@@ -60,25 +60,25 @@ describe('People Groups Cloud Component', () => {
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
clientId = await groupIdentityService.getClientIdByApplicationName(resources.ACTIVITI7_APPS.SIMPLE_APP.name);
|
||||
groupActiviti = await groupIdentityService.createIdentityGroup();
|
||||
clientActivitiAdminRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.roles.activiti_admin);
|
||||
clientActivitiUserRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.roles.activiti_user);
|
||||
clientActivitiAdminRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
clientActivitiUserRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, identityService.ROLES.ACTIVITI_USER);
|
||||
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.activiti_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
activitiUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.ACTIVITI_USER]);
|
||||
noRoleUser = await identityService.createIdentityUser();
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiUserRoleId, identityService.roles.activiti_user);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
await identityService.deleteClientRole(noRoleUser.idIdentityService, clientId, clientActivitiUserRoleId, identityService.ROLES.ACTIVITI_USER);
|
||||
|
||||
groupAps = await groupIdentityService.createIdentityGroup();
|
||||
apsAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.roles.aps_admin);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsAdminRoleId, identityService.roles.aps_admin);
|
||||
activitiAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.roles.activiti_admin);
|
||||
await groupIdentityService.assignRole(groupActiviti.id, activitiAdminRoleId, identityService.roles.activiti_admin);
|
||||
apsAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.APS_ADMIN);
|
||||
await groupIdentityService.assignRole(groupAps.id, apsAdminRoleId, identityService.ROLES.APS_ADMIN);
|
||||
activitiAdminRoleId = await rolesService.getRoleIdByRoleName(identityService.ROLES.ACTIVITI_ADMIN);
|
||||
await groupIdentityService.assignRole(groupActiviti.id, activitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN);
|
||||
groupNoRole = await groupIdentityService.createIdentityGroup();
|
||||
|
||||
await groupIdentityService.addClientRole(groupAps.id, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin );
|
||||
await groupIdentityService.addClientRole(groupActiviti.id, clientId, clientActivitiAdminRoleId, identityService.roles.activiti_admin );
|
||||
await groupIdentityService.addClientRole(groupAps.id, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN );
|
||||
await groupIdentityService.addClientRole(groupActiviti.id, clientId, clientActivitiAdminRoleId, identityService.ROLES.ACTIVITI_ADMIN );
|
||||
users = [`${apsUser.idIdentityService}`, `${activitiUser.idIdentityService}`, `${noRoleUser.idIdentityService}`, `${testUser.idIdentityService}`];
|
||||
groups = [`${groupAps.id}`, `${groupActiviti.id}`, `${groupNoRole.id}`];
|
||||
|
||||
|
@@ -61,7 +61,7 @@ describe('Process list cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -67,8 +67,8 @@ describe('Process filters cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
anotherUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
anotherUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -61,7 +61,7 @@ describe('Process filters cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -73,7 +73,7 @@ describe('Process Header cloud component', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -55,7 +55,7 @@ describe('Process list cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -52,7 +52,7 @@ describe('Process list cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -51,7 +51,7 @@ describe('Start Process', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await settingsPage.setProviderBpmSso(
|
||||
|
@@ -58,8 +58,8 @@ describe('Start Task', () => {
|
||||
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user, identityService.roles.activiti_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
apsUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER, identityService.ROLES.ACTIVITI_USER]);
|
||||
|
||||
activitiUser = await identityService.createIdentityUser();
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
|
@@ -70,7 +70,7 @@ describe('Start Task Form', () => {
|
||||
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
|
@@ -43,7 +43,7 @@ describe('Task filters cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
|
@@ -57,7 +57,7 @@ describe('Task Header cloud component', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -64,7 +64,7 @@ describe('Edit task filters and task list properties', () => {
|
||||
tasksService = new TasksService(apiService);
|
||||
const settingsPage = new SettingsPage();
|
||||
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -50,7 +50,7 @@ describe('Task list cloud - selection', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
@@ -64,7 +64,7 @@ describe('Task filters cloud', () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
identityService = new IdentityService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.roles.aps_user]);
|
||||
testUser = await identityService.createIdentityUserWithRole(apiService, [identityService.ROLES.APS_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
Reference in New Issue
Block a user