mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-NO-ISSUE] update e2e js-api 3 (#4124)
* update e2e js-api node * fix protractor import * use new client * fix protractor conf comaptibility * processClient fix * new js-api * fix new import * fix identity call * fix identity call * remove aut param * fix model * fix model * increase timeout CS bigFile * Refactor task details e2e tests * Fix e2e test * Rebase branch
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import AlfrescoApi = require('alfresco-js-api-node');
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import TestConfig = require('../../test.config');
|
||||
|
||||
export class ApiService {
|
||||
|
||||
HOST_SSO = TestConfig.adf.hostSso;
|
||||
@@ -49,7 +50,6 @@ export class ApiService {
|
||||
async performBpmOperation(path, method, queryParams, postBody) {
|
||||
const uri = this.HOST_BPM + path;
|
||||
const pathParams = {}, formParams = {};
|
||||
const authNames = [];
|
||||
const contentTypes = ['application/json'];
|
||||
const accepts = ['application/json'];
|
||||
|
||||
@@ -57,8 +57,8 @@ export class ApiService {
|
||||
'Authorization': 'bearer ' + this.apiService.oauth2Auth.token
|
||||
};
|
||||
|
||||
return this.apiService.bpmClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, {})
|
||||
return this.apiService.processClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
|
||||
contentTypes, accepts, Object)
|
||||
.catch((error) => {
|
||||
throw (error);
|
||||
});
|
||||
@@ -67,7 +67,6 @@ export class ApiService {
|
||||
async performIdentityOperation(path, method, queryParams, postBody) {
|
||||
const uri = this.HOST_IDENTITY + path;
|
||||
const pathParams = {}, formParams = {};
|
||||
const authNames = [];
|
||||
const contentTypes = ['application/json'];
|
||||
const accepts = ['application/json'];
|
||||
|
||||
@@ -75,8 +74,8 @@ export class ApiService {
|
||||
'Authorization': 'bearer ' + this.apiService.oauth2Auth.token
|
||||
};
|
||||
|
||||
return this.apiService.bpmClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, {})
|
||||
return this.apiService.processClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
|
||||
contentTypes, accepts, Object)
|
||||
.catch((error) => {
|
||||
throw (error);
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ import { browser } from 'protractor';
|
||||
export class AppsActions {
|
||||
|
||||
async getProcessTaskId(alfrescoJsApi, processId) {
|
||||
let taskList = await alfrescoJsApi.activiti.taskApi.listTasks();
|
||||
let taskList = await alfrescoJsApi.activiti.taskApi.listTasks({});
|
||||
let taskId = -1;
|
||||
|
||||
taskList.data.forEach((task) => {
|
||||
|
||||
Reference in New Issue
Block a user