mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Remove the dependency with TestConfig (#4752)
* Remove the dependency with TestConfig * Change protocol to https * Trigger the cloud change * Trigger the cloud change
This commit is contained in:
@@ -58,9 +58,9 @@ export class TasksService {
|
||||
|
||||
}
|
||||
|
||||
async claimTask(taskId, appName, assignee: string = global['TestConfig'].adf.adminEmail) {
|
||||
async claimTask(taskId, appName) {
|
||||
try {
|
||||
const path = '/' + appName + '/rb/v1/tasks/' + taskId + `/claim?assignee=${assignee}`;
|
||||
const path = '/' + appName + '/rb/v1/tasks/' + taskId + `/claim`;
|
||||
const method = 'POST';
|
||||
|
||||
const queryParams = {}, postBody = {};
|
||||
@@ -86,9 +86,9 @@ export class TasksService {
|
||||
}
|
||||
}
|
||||
|
||||
async createAndCompleteTask(taskName, appName, assignee: string = global['TestConfig'].adf.adminEmail) {
|
||||
async createAndCompleteTask(taskName, appName) {
|
||||
const task = await this.createStandaloneTask(taskName, appName);
|
||||
await this.claimTask(task.entry.id, appName, assignee);
|
||||
await this.claimTask(task.entry.id, appName);
|
||||
await this.completeTask(task.entry.id, appName);
|
||||
return task;
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
const DEFAULT_ROOT_PATH = global['TestConfig'].main.rootPath;
|
||||
const DEFAULT_ROOT_PATH = global['TestConfig'] ? global['TestConfig'].main.rootPath : __dirname;
|
||||
|
||||
export class FileBrowserUtil {
|
||||
|
||||
|
Reference in New Issue
Block a user