mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Use hash strategy in demo shell as the other apps (#6402)
* hash startegy * use hash in e2e * trigger build * fix * fix * remove children router overwrite crazynes * Update login.module.ts * revert not needed changes * some fixes * fix * remove fdescribe * fix * fix * Update share-file.e2e.ts * Update lock-file.e2e.ts * Update share-file.e2e.ts * some fix * some other fixes * username as id * fix after rebase * username * fix usernamee * Fix the errorComponent * Attempt to fix unit test - to check * * Fixed circular dependency error while building adf-testing package * * Fixed failing UT * fix * use username * some fixes * some fix * fix Co-authored-by: Maurizio Vitale <maurizio.vitale@alfresco.com> Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local> Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
This commit is contained in:
co-authored by
Maurizio Vitale
Vito Albano
sivakumar414ram
parent
3734151338
commit
1c51b2a1a6
@@ -32,8 +32,8 @@ describe('About Process Services Cloud', () => {
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER, identityService.ROLES.ACTIVITI_DEVOPS]);
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
await navigationBarPage.clickAboutButton();
|
||||
});
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@ describe('Applications list', () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER, identityService.ROLES.ACTIVITI_DEVOPS]);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
applications = await applicationsService.getApplicationsByStatus('RUNNING');
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ describe('Edit process filters cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -54,12 +54,12 @@ describe('Edit task filters cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const assignedTask = await tasksService.createStandaloneTask(assignedTaskName, simpleApp);
|
||||
await tasksService.claimTask(assignedTask.entry.id, simpleApp);
|
||||
await tasksService.createAndCompleteTask(completedTaskName, simpleApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -56,7 +56,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.dropdownrestprocess, simpleApp);
|
||||
@@ -69,7 +69,7 @@ describe('Form Field Component - Dropdown Widget', () => {
|
||||
task = await tasklist.list.entries[0];
|
||||
await tasksService.claimTask(task.entry.id, simpleApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -62,7 +62,7 @@ describe('Task cloud visibility', async () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('People Groups Cloud Component', () => {
|
||||
`${testUser.idIdentityService}`, `${devopsUser.idIdentityService}`];
|
||||
groups = [`${groupUser.id}`, `${groupAdmin.id}`, `${groupNoRole.id}`];
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -57,7 +57,7 @@ describe('People Groups Cloud Component', () => {
|
||||
|
||||
users = [apsUser.idIdentityService, noRoleUser.idIdentityService, testUser.idIdentityService];
|
||||
|
||||
await loginSSOPage.login(apsUser.email, apsUser.password);
|
||||
await loginSSOPage.login(apsUser.username, apsUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -57,7 +57,7 @@ describe('Process list cloud', () => {
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.processes.candidateGroupProcess, candidateBaseApp);
|
||||
@@ -91,13 +91,13 @@ describe('Process list cloud', () => {
|
||||
const claimedTask = await tasksService.claimTask(task.list.entries[0].entry.id, candidateBaseApp);
|
||||
await tasksService.completeTask(claimedTask.entry.id, candidateBaseApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
await LocalStorageUtil.setConfigField('adf-cloud-process-list', JSON.stringify(processListCloudConfigFile));
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
await processInstancesService.deleteProcessInstance(anotherProcessInstance.entry.id, candidateBaseApp);
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
|
||||
@@ -79,7 +79,7 @@ describe('Process filters cloud', () => {
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await identityService.addUserToGroup(anotherUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(anotherUser.email, anotherUser.password);
|
||||
await apiService.login(anotherUser.username, anotherUser.password);
|
||||
simpleAppProcessDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.simpleProcess, simpleApp);
|
||||
|
||||
@@ -88,7 +88,7 @@ describe('Process filters cloud', () => {
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.processes.candidateGroupProcess, candidateBaseApp);
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('Process filters cloud', () => {
|
||||
const claimedTask = await tasksService.claimTask(task.list.entries[0].entry.id, candidateBaseApp);
|
||||
await tasksService.completeTask(claimedTask.entry.id, candidateBaseApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
await LocalStorageUtil.setConfigField('adf-cloud-process-list', JSON.stringify(processListCloudConfigFile));
|
||||
});
|
||||
@@ -130,7 +130,7 @@ describe('Process filters cloud', () => {
|
||||
await processInstancesService.deleteProcessInstance(anotherProcessInstance.entry.id, candidateBaseApp);
|
||||
await processInstancesService.deleteProcessInstance(suspendProcessInstance.entry.id, candidateBaseApp);
|
||||
|
||||
await apiService.login(anotherUser.email, anotherUser.password);
|
||||
await apiService.login(anotherUser.username, anotherUser.password);
|
||||
await processInstancesService.deleteProcessInstance(differentAppUserProcessInstance.entry.id, simpleApp);
|
||||
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
|
||||
@@ -63,7 +63,7 @@ describe('Process filters cloud', () => {
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.processes.candidateGroupProcess, candidateBaseApp);
|
||||
@@ -82,7 +82,7 @@ describe('Process filters cloud', () => {
|
||||
const claimedTask = await tasksService.claimTask(task.list.entries[0].entry.id, candidateBaseApp);
|
||||
await tasksService.completeTask(claimedTask.entry.id, candidateBaseApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
|
||||
}, 5 * 60 * 1000);
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ describe('Process Header cloud component', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
const dropdownRestProcess = await processDefinitionService.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.dropdownrestprocess, simpleApp);
|
||||
|
||||
@@ -81,7 +81,7 @@ describe('Process Header cloud component', () => {
|
||||
|
||||
completedCreatedDate = moment(childCompleteProcess.entry.startDate).format(formatDate);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
});
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ describe('Process list cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.simpleProcess, simpleApp);
|
||||
|
||||
@@ -71,7 +71,7 @@ describe('Process list cloud', () => {
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
|
||||
await navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
await appListCloudComponent.checkApsContainer();
|
||||
|
||||
@@ -58,7 +58,7 @@ describe('Process list cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.simpleProcess, simpleApp);
|
||||
|
||||
@@ -67,7 +67,7 @@ describe('Process list cloud', () => {
|
||||
processInstances.push(response.entry.id);
|
||||
}
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
});
|
||||
|
||||
|
||||
@@ -87,18 +87,18 @@ describe('Process Task - Attach content file', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const processDefinition = await processDefinitionService.getProcessDefinitionByName(processDefinitionName, simpleApp);
|
||||
processInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, simpleApp, { name: 'upload process' });
|
||||
|
||||
const task = await queryService.getProcessInstanceTasks(processInstance.entry.id, simpleApp);
|
||||
await tasksService.claimTask(task.list.entries[0].entry.id, simpleApp);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
uploadedFolder = await uploadActions.createFolder(folderName, '-my-');
|
||||
await uploadActions.uploadFile(pdfFileOne.location, pdfFileOne.name, uploadedFolder.entry.id);
|
||||
await uploadActions.uploadFile(pdfFileTwo.location, pdfFileTwo.name, uploadedFolder.entry.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
await appListCloudComponent.checkApsContainer();
|
||||
});
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('Start Process', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
|
||||
await navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
await appListCloudComponent.checkApsContainer();
|
||||
|
||||
@@ -101,7 +101,7 @@ describe('Start Task Form', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
processDefinitionService = new ProcessDefinitionsService(apiService);
|
||||
processInstancesService = new ProcessInstancesService(apiService);
|
||||
processDefinition = await processDefinitionService
|
||||
@@ -141,18 +141,18 @@ describe('Start Task Form', () => {
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
uploadedFolder = await uploadActions.createFolder(folderName, '-my-');
|
||||
await uploadActions.uploadFile(testFileModel.location, testFileModel.name, uploadedFolder.entry.id);
|
||||
await uploadActions.uploadFile(pdfFileModel.location, pdfFileModel.name, uploadedFolder.entry.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-cloud-start-process', JSON.stringify(startProcessCloudConfig));
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await uploadActions.deleteFileOrFolder(uploadedFolder.entry.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const standaloneTaskId = await tasksService.getTaskId(standaloneTaskName, candidateBaseApp);
|
||||
await tasksService.deleteTask(standaloneTaskId, candidateBaseApp);
|
||||
|
||||
|
||||
@@ -67,9 +67,9 @@ describe('Start Task', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await identityService.addUserToGroup(apsUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -80,7 +80,7 @@ describe('Start Task', () => {
|
||||
taskId = await tasksService.getTaskId(unassignedTaskName, simpleApp);
|
||||
await tasksService.deleteTask(taskId, simpleApp);
|
||||
|
||||
await apiService.login(apsUser.email, apsUser.password);
|
||||
await apiService.login(apsUser.username, apsUser.password);
|
||||
taskId = await tasksService.getTaskId(reassignTaskName, simpleApp);
|
||||
await tasksService.deleteTask(taskId, simpleApp);
|
||||
|
||||
|
||||
@@ -63,11 +63,11 @@ describe('Start Task - Group Cloud Component', () => {
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, hrGroup.id);
|
||||
await identityService.addUserToGroup(apsUser.idIdentityService, testGroup.id);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const tasksService = new TasksService(apiService);
|
||||
|
||||
const bothGroupsTaskId = await tasksService.getTaskId(bothGroupsTaskName, simpleApp);
|
||||
|
||||
@@ -57,9 +57,9 @@ describe('Task filters cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -94,7 +94,7 @@ describe('Task form cloud component', () => {
|
||||
const groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiServiceHrUser.login(testUser.email, testUser.password);
|
||||
await apiServiceHrUser.login(testUser.username, testUser.password);
|
||||
const tasksService = new TasksService(apiServiceHrUser);
|
||||
|
||||
assigneeTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), candidateBaseApp);
|
||||
@@ -139,7 +139,7 @@ describe('Task form cloud component', () => {
|
||||
processInstancesService = new ProcessInstancesService(apiServiceHrUser);
|
||||
await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
|
||||
}, 5 * 60 * 1000);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ describe('Task Header cloud component', () => {
|
||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
unclaimedTask = await tasksService.createStandaloneTask(unclaimedTaskName, simpleApp);
|
||||
|
||||
@@ -119,7 +119,7 @@ describe('Task Header cloud component', () => {
|
||||
subTaskCreatedDate = moment(subTask.entry.createdDate).format(formatDate);
|
||||
|
||||
await browser.sleep(3000);
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('Process list cloud', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
const processDefinition = await processDefinitionService
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.dropdownrestprocess, simpleApp);
|
||||
|
||||
@@ -60,7 +60,7 @@ describe('Process list cloud', () => {
|
||||
await tasksService.claimTask(editTask.list.entries[0].entry.id, simpleApp);
|
||||
await tasksService.claimTask(deleteTask.list.entries[0].entry.id, simpleApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async() => {
|
||||
|
||||
@@ -50,7 +50,7 @@ describe('Edit task filters and task list properties', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
otherOwnerTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||
await tasksService.claimTask(otherOwnerTask.entry.id, simpleApp);
|
||||
@@ -75,7 +75,7 @@ describe('Edit task filters and task list properties', () => {
|
||||
|
||||
const jsonFile = new TaskListCloudConfiguration().getConfiguration();
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-cloud-task-list', JSON.stringify(jsonFile));
|
||||
await LocalStorageUtil.setConfigField('adf-edit-task-filter', JSON.stringify({
|
||||
'filterProperties': [
|
||||
|
||||
@@ -62,7 +62,7 @@ describe('Edit task filters and task list properties', () => {
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
otherOwnerTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||
await tasksService.claimTask(otherOwnerTask.entry.id, simpleApp);
|
||||
@@ -88,7 +88,7 @@ describe('Edit task filters and task list properties', () => {
|
||||
|
||||
const jsonFile = new TaskListCloudConfiguration().getConfiguration();
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
await LocalStorageUtil.setConfigField('adf-cloud-task-list', JSON.stringify(jsonFile));
|
||||
await LocalStorageUtil.setConfigField('adf-edit-task-filter', JSON.stringify(taskFilterConfiguration));
|
||||
}, 5 * 60 * 1000);
|
||||
|
||||
@@ -55,7 +55,7 @@ describe('Task list cloud - selection', () => {
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
for (let i = 0; i < noOfTasks; i++) {
|
||||
response = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||
@@ -63,7 +63,7 @@ describe('Task list cloud - selection', () => {
|
||||
tasks.push(response.entry.name);
|
||||
}
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
@@ -66,7 +66,7 @@ describe('Task filters cloud', () => {
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
|
||||
await tasksService.createStandaloneTask(createdTaskName, simpleApp);
|
||||
|
||||
@@ -91,7 +91,7 @@ describe('Task filters cloud', () => {
|
||||
await processInstancesService.deleteProcessInstance(secondProcessInstance.entry.id, simpleApp);
|
||||
await queryService.getProcessInstanceTasks(processInstance.entry.id, simpleApp);
|
||||
|
||||
await loginSSOPage.login(testUser.email, testUser.password);
|
||||
await loginSSOPage.login(testUser.username, testUser.password);
|
||||
|
||||
}, 5 * 60 * 1000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user