[ADF-4241]Added tests for process header cloud component (#4463)

* Added tests for process header cloud component

* Move the process-header-cloud-component page to testing folder

* Changed the test rail ids

* Fix lint issues.
This commit is contained in:
cristinaj
2019-03-27 09:55:32 +00:00
committed by Eugenio Romano
parent f9e39aaebd
commit e415bd8cd5
8 changed files with 240 additions and 2 deletions
+3 -2
View File
@@ -28,13 +28,14 @@ export class ProcessInstances {
await this.api.login(username, password);
}
async createProcessInstance(processDefKey, appName) {
async createProcessInstance(processDefKey, appName, options?) {
const path = '/' + appName + '-rb/v1/process-instances';
const method = 'POST';
const queryParams = {}, postBody = {
'processDefinitionKey': processDefKey,
'payloadType': 'StartProcessPayload'
'payloadType': 'StartProcessPayload',
...options
};
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
+10
View File
@@ -38,4 +38,14 @@ export class Query {
return data;
}
async getProcessInstanceSubProcesses(processInstanceId, appName) {
const path = '/' + appName + '-query/v1/process-instances/' + processInstanceId + '/subprocesses';
const method = 'GET';
const queryParams = {};
const data = await this.api.performBpmOperation(path, method, queryParams, {});
return data;
}
}