Process list implement pagination interface (#2872)

This commit is contained in:
Maurizio Vitale
2018-02-03 18:22:05 +00:00
committed by Eugenio Romano
parent 105bc80d2c
commit 0f6ac42e4c
17 changed files with 311 additions and 141 deletions

View File

@@ -104,7 +104,7 @@ describe('CommentsComponent', () => {
});
}));
it('should display comments count when the task has comments', () => {
it('should display comments count when the task has comments', async(() => {
let change = new SimpleChange(null, '123', true);
component.ngOnChanges({ 'taskId': change });
fixture.whenStable().then(() => {
@@ -112,7 +112,7 @@ describe('CommentsComponent', () => {
let element = fixture.nativeElement.querySelector('#comment-header');
expect(element.innerText).toBe('ADF_TASK_LIST.DETAILS.COMMENTS.HEADER');
});
});
}));
it('should not display comments when the task has no comments', async(() => {
component.taskId = '123';

View File

@@ -100,7 +100,7 @@ describe('ActivitiProcessInstanceComments', () => {
});
}));
it('should display comments count when the process has comments', () => {
it('should display comments count when the process has comments', async(() => {
let change = new SimpleChange(null, '123', true);
component.ngOnChanges({ 'processInstanceId': change });
@@ -109,7 +109,7 @@ describe('ActivitiProcessInstanceComments', () => {
let element = fixture.nativeElement.querySelector('#comment-header');
expect(element.innerText).toBe('ADF_PROCESS_LIST.DETAILS.COMMENTS.HEADER');
});
});
}));
it('should not display comments when the process has no comments', async(() => {
let change = new SimpleChange(null, '123', true);