mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-4715][ADF-4717] fix process-filter-results random failing tests (#4888)
* [ADF-4715] a process never has CREATED status * [ADF-4717] clean up in afterAll * check mediumDate format * check mediumDate format * show more log data * Revert "show more log data" This reverts commit a19c629
This commit is contained in:
parent
e03799e038
commit
a13196a836
@ -33,7 +33,7 @@ import { NavigationBarPage } from '../../pages/adf/navigationBarPage';
|
||||
describe('Metadata component', () => {
|
||||
|
||||
const METADATA = {
|
||||
DATA_FORMAT: 'mmm dd, yyyy',
|
||||
DATA_FORMAT: 'mmm d, yyyy',
|
||||
TITLE: 'Details',
|
||||
COMMENTS_TAB: 'COMMENTS',
|
||||
PROPERTY_TAB: 'PROPERTIES',
|
||||
|
@ -78,7 +78,6 @@ describe('Process filters cloud', () => {
|
||||
processDefinitionService = new ProcessDefinitionsService(apiService);
|
||||
simpleAppProcessDefinition = await processDefinitionService.getProcessDefinitionByName('simpleProcess', simpleApp);
|
||||
processInstancesService = new ProcessInstancesService(apiService);
|
||||
await processInstancesService.createProcessInstance(simpleAppProcessDefinition.entry.key, simpleApp);
|
||||
differentAppUserProcessInstance = await processInstancesService.createProcessInstance(simpleAppProcessDefinition.entry.key, simpleApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
@ -87,7 +86,6 @@ describe('Process filters cloud', () => {
|
||||
await apiService.login(testUser.email, testUser.password);
|
||||
processDefinition = await processDefinitionService.getProcessDefinitionByName('candidateGroupProcess', candidateBaseApp);
|
||||
anotherProcessDefinition = await processDefinitionService.getProcessDefinitionByName('anotherCandidateGroupProcess', candidateBaseApp);
|
||||
await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp);
|
||||
|
||||
runningProcessInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
@ -127,6 +125,13 @@ describe('Process filters cloud', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await processInstancesService.deleteProcessInstance(runningProcessInstance.entry.id, candidateBaseApp);
|
||||
await processInstancesService.deleteProcessInstance(anotherProcessInstance.entry.id, candidateBaseApp);
|
||||
await processInstancesService.deleteProcessInstance(suspendProcessInstance.entry.id, candidateBaseApp);
|
||||
|
||||
await apiService.login(anotherUser.email, anotherUser.password);
|
||||
await processInstancesService.deleteProcessInstance(differentAppUserProcessInstance.entry.id, simpleApp);
|
||||
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
await identityService.deleteIdentityUser(anotherUser.idIdentityService);
|
||||
|
@ -40,7 +40,7 @@ describe('Process Instance Details', () => {
|
||||
|
||||
let appModel, process, user;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const PROCESS_DATE_FORMAT = 'mmm dd, yyyy';
|
||||
const PROCESS_DATE_FORMAT = 'mmm d, yyyy';
|
||||
|
||||
beforeAll(async (done) => {
|
||||
const apps = new AppsActions();
|
||||
|
@ -38,7 +38,7 @@ describe('Task Details component', () => {
|
||||
let processUserModel, appModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const tasks = ['Modifying task', 'Information box', 'No form', 'Not Created', 'Refreshing form', 'Assignee task', 'Attach File'];
|
||||
const TASK_DATE_FORMAT = 'mmm dd, yyyy';
|
||||
const TASK_DATE_FORMAT = 'mmm d, yyyy';
|
||||
let formModel;
|
||||
let apps;
|
||||
|
||||
|
@ -118,7 +118,7 @@ exports.PROCESS_BUSINESS_KEY = "None";
|
||||
|
||||
exports.PROCESS_DESCRIPTION = "No description";
|
||||
|
||||
exports.PROCESS_DATE_FORMAT = "mmm dd, yyyy";
|
||||
exports.PROCESS_DATE_FORMAT = "mmm d, yyyy";
|
||||
|
||||
exports.PROCESS_DETAILS = {
|
||||
NO_PARENT: "None",
|
||||
|
@ -90,7 +90,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
|
||||
|
||||
status = [
|
||||
{ label: 'ALL', value: '' },
|
||||
{ label: 'CREATED', value: 'CREATED' },
|
||||
{ label: 'RUNNING', value: 'RUNNING' },
|
||||
{ label: 'SUSPENDED', value: 'SUSPENDED' },
|
||||
{ label: 'CANCELLED', value: 'CANCELLED' },
|
||||
|
@ -40,7 +40,7 @@ export class ProcessInstancesService {
|
||||
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('create process-instances Service not working');
|
||||
console.log('create process-instances Service not working', error.message);
|
||||
}
|
||||
|
||||
}
|
||||
@ -56,7 +56,7 @@ export class ProcessInstancesService {
|
||||
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('suspend process-instances Service not working');
|
||||
console.log('suspend process-instances Service not working', error.message);
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ export class ProcessInstancesService {
|
||||
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('delete process-instances Service not working');
|
||||
console.log('delete process-instances Service not working', error.message);
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ export class ProcessInstancesService {
|
||||
|
||||
} catch (error) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.log('complete process-instances Service not working');
|
||||
console.log('complete process-instances Service not working', error.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user