[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 19:14:50 +05:30
committed by GitHub
parent 226b139d7a
commit 9599d834b0
5 changed files with 273 additions and 37 deletions

View File

@@ -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);