mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[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:
+12
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user