mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-4609]Logging the response in case of error. (#4784)
* Logging the response in case of error. * Enable all cloud tests * no message * no message * Comment failing tests
This commit is contained in:
parent
f6d8bd4130
commit
36faed0fab
@ -24,7 +24,7 @@ import { AppListCloudPage } from '@alfresco/adf-testing';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
xdescribe('Process filters cloud', () => {
|
||||
describe('Process filters cloud', () => {
|
||||
|
||||
describe('Process Filters', () => {
|
||||
const loginSSOPage = new LoginSSOPage();
|
||||
|
@ -24,7 +24,7 @@ import { TaskDetailsCloudDemoPage } from '../pages/adf/demo-shell/process-servic
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
xdescribe('Complete task - cloud directive', () => {
|
||||
describe('Complete task - cloud directive', () => {
|
||||
|
||||
const loginSSOPage = new LoginSSOPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
@ -47,6 +47,7 @@ xdescribe('Complete task - cloud directive', () => {
|
||||
await apiService.login(browser.params.identityUser.email, browser.params.identityUser.password);
|
||||
|
||||
tasksService = new TasksService(apiService);
|
||||
queryService = new QueryService(apiService);
|
||||
createdTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), candidateuserapp);
|
||||
|
||||
assigneeTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), candidateuserapp);
|
||||
@ -65,9 +66,7 @@ xdescribe('Complete task - cloud directive', () => {
|
||||
processInstancesService = new ProcessInstancesService(apiService);
|
||||
completedProcess = await processInstancesService.createProcessInstance(processDefinition.list.entries[0].entry.key, candidateuserapp);
|
||||
|
||||
queryService = new QueryService(apiService);
|
||||
const task = await queryService.getProcessInstanceTasks(completedProcess.entry.id, candidateuserapp);
|
||||
tasksService = new TasksService(apiService);
|
||||
claimedTask = await tasksService.claimTask(task.list.entries[0].entry.id, candidateuserapp);
|
||||
|
||||
await settingsPage.setProviderBpmSso(
|
||||
|
@ -139,7 +139,7 @@ describe('Task Header cloud component', () => {
|
||||
.toEqual(subTask.entry.parentTaskId === null ? '' : subTask.entry.parentTaskId);
|
||||
});
|
||||
|
||||
xit('[C307032] Should display the appropriate title for the unclaim option of a Task', () => {
|
||||
it('[C307032] Should display the appropriate title for the unclaim option of a Task', () => {
|
||||
tasksCloudDemoPage.myTasksFilter().clickTaskFilter();
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(basicCreatedTaskName);
|
||||
tasksCloudDemoPage.taskListCloudComponent().selectRow(basicCreatedTaskName);
|
||||
|
@ -327,7 +327,7 @@ xdescribe('Edit task filters and task list properties', () => {
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name);
|
||||
});
|
||||
|
||||
xit('[C297691] Task is not displayed when typing into lastModifiedFrom field a date before the task due date ' +
|
||||
it('[C297691] Task is not displayed when typing into lastModifiedFrom field a date before the task due date ' +
|
||||
'and into lastModifiedTo a date before task due date', () => {
|
||||
|
||||
tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
|
||||
|
@ -124,7 +124,7 @@ describe('Task filters cloud', () => {
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(deletedTaskName);
|
||||
});
|
||||
|
||||
xit('[C290139] Should display only tasks with all statuses when All is selected from status dropdown', () => {
|
||||
it('[C290139] Should display only tasks with all statuses when All is selected from status dropdown', () => {
|
||||
tasksCloudDemoPage.editTaskFilterCloudComponent().clickCustomiseFilterHeader().clearAssignee()
|
||||
.setStatusFilterDropDown('ALL');
|
||||
|
||||
@ -134,7 +134,7 @@ describe('Task filters cloud', () => {
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(completedTaskName);
|
||||
});
|
||||
|
||||
xit('[C290154] Should display only tasks with suspended statuses when Suspended is selected from status dropdown', () => {
|
||||
it('[C290154] Should display only tasks with suspended statuses when Suspended is selected from status dropdown', () => {
|
||||
tasksCloudDemoPage.editTaskFilterCloudComponent().clickCustomiseFilterHeader().clearAssignee()
|
||||
.setStatusFilterDropDown('SUSPENDED');
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedById(suspendedTasks.list.entries[0].entry.id);
|
||||
@ -144,7 +144,7 @@ describe('Task filters cloud', () => {
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(assignedTaskName);
|
||||
});
|
||||
|
||||
xit('[C290060] Should display only tasks with Created status when Created is selected from status dropdown', () => {
|
||||
it('[C290060] Should display only tasks with Created status when Created is selected from status dropdown', () => {
|
||||
tasksCloudDemoPage.editTaskFilterCloudComponent().clickCustomiseFilterHeader().clearAssignee().setStatusFilterDropDown('CREATED');
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTaskName);
|
||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(assignedTaskName);
|
||||
|
@ -77,8 +77,10 @@ export class IdentityService {
|
||||
}
|
||||
|
||||
async createUser(user: UserModel) {
|
||||
try {
|
||||
const path = '/users';
|
||||
const method = 'POST';
|
||||
|
||||
const queryParams = {}, postBody = {
|
||||
'username': user.username,
|
||||
'firstName': user.firstName,
|
||||
@ -86,7 +88,12 @@ export class IdentityService {
|
||||
'enabled': true,
|
||||
'email': user.email
|
||||
};
|
||||
|
||||
return await this.api.performIdentityOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('Create User - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
async deleteUser(userId) {
|
||||
|
@ -39,7 +39,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('Task Service error');
|
||||
console.log('Create Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('Task Service error');
|
||||
console.log('Complete Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
|
||||
}
|
||||
@ -68,7 +68,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('claim Task Service error');
|
||||
console.log('Claim Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('delete task Service error');
|
||||
console.log('Delete Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('get Task Service error');
|
||||
console.log('Get Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ export class TasksService {
|
||||
return data.list.entries && data.list.entries.length > 0 ? data.list.entries[0].entry.id : null;
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('get Task Service error');
|
||||
console.log('Get Task Id - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
@ -133,7 +133,7 @@ export class TasksService {
|
||||
return await this.api.performBpmOperation(path, method, queryParams, postBody);
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('create Task Service error');
|
||||
console.log('Create Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user