[ADF-3933]Implement automated tests for task header component (#4191)

* Adding taskDetailsCloudComponent page

* Implement task header automated tests

* Removed the comments

* Fix lint errors.
This commit is contained in:
cristinaj
2019-01-29 07:57:16 +00:00
committed by Eugenio Romano
parent aa852e7b48
commit 618929cefb
3 changed files with 258 additions and 0 deletions
+20
View File
@@ -79,4 +79,24 @@ export class Tasks {
return task;
}
async getTask(taskId, appName) {
const path = '/' + appName + '-query/v1/tasks/' + taskId;
const method = 'GET';
const queryParams = {}, postBody = {};
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
return data;
}
async createStandaloneSubtask(taskId, appName, name) {
const path = '/' + appName + '-rb/v1/tasks/' + taskId + '/subtask';
const method = 'POST';
const queryParams = {}, postBody = {'name': name, 'payloadType': 'CreateTaskPayload'};
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
return data;
}
}