[AAE-1953] Claim Reclaim Task AAE E2E (#5529)

* [AAE-1953] Claim Reclaim Task AAE E2E

* * fixed linting and fixed changes
This commit is contained in:
dhrn
2020-03-06 13:44:50 +00:00
committed by GitHub
parent 226b139d7a
commit 9599d834b0
5 changed files with 273 additions and 37 deletions
@@ -116,6 +116,18 @@ describe('TaskFormCloudComponent', () => {
describe('Claim/Unclaim buttons', () => {
it('should not show release button for standalone task', async(() => {
component.taskId = 'task1';
component.loadTask();
fixture.detectChanges();
getTaskSpy.and.returnValue(of(taskDetails));
fixture.whenStable().then(() => {
const unclaimBtn = debugElement.query(By.css('[adf-cloud-unclaim-task]'));
expect(unclaimBtn).toBeNull();
});
}));
it('should show release button when task has candidate users and is assigned to one of these users', async(() => {
spyOn(component, 'hasCandidateUsers').and.returnValue(true);
@@ -54,7 +54,11 @@ export const ACTIVITI_CLOUD_APPS: any = {
security: [
{ 'role': 'ACTIVITI_ADMIN', 'groups': [], 'users': ['superadminuser', 'processadminuser'] },
{ 'role': 'ACTIVITI_USER', 'groups': ['hr', 'testgroup'], 'users': ['hruser', 'salesuser'] }
]
],
tasks: {
uploadFileTask: 'UploadFileTask',
candidateUserTask: 'candidateUserTask'
}
},
SIMPLE_APP: {
name: 'simpleapp',