mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-10 14:11:42 +00:00
CSX-73 Date and Select Satori (#11056)
* CSX-73 Date and Select Satori * CSX-73 Fix process-header unit test * CSX-73 Fix core unit test * CSX-73 Fix core unit test * CSX-73 Fix task-header unit test * CSX-73 Fix task-header unit test * CSX-73 Fix task-header unit test * CSX-73 Fix card-view dateitem * CSX-73 Fix card-view dateitem --------- Co-authored-by: Sahana Ghosal <sahana.ghosal@hyland.com>
This commit is contained in:
@@ -207,9 +207,7 @@ describe('TaskAttachmentList', () => {
|
||||
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
expect(fixture.nativeElement.querySelector('div[adf-empty-list-header]').innerText.trim()).toEqual(
|
||||
'ADF_TASK_LIST.ATTACHMENT.EMPTY.HEADER'
|
||||
);
|
||||
expect(fixture.nativeElement.querySelector('div[adf-empty-list-header]').value.trim()).toEqual('ADF_TASK_LIST.ATTACHMENT.EMPTY.HEADER');
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -64,7 +64,7 @@ describe('ProcessInstanceHeaderComponent', () => {
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
const valueEl = fixture.nativeElement.querySelector('[data-automation-id="card-dateitem-ended"]');
|
||||
expect(valueEl.innerText).toBe('Nov 3, 2016');
|
||||
expect(valueEl.value).toBe('Nov 3, 2016');
|
||||
});
|
||||
|
||||
it('should display placeholder if no due date', () => {
|
||||
@@ -72,7 +72,7 @@ describe('ProcessInstanceHeaderComponent', () => {
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
const valueEl = fixture.nativeElement.querySelector('[data-automation-id="card-dateitem-ended"]');
|
||||
expect(valueEl.innerText).toBe('ADF_PROCESS_LIST.PROPERTIES.END_DATE_DEFAULT');
|
||||
expect(valueEl.value).toBe('ADF_PROCESS_LIST.PROPERTIES.END_DATE_DEFAULT');
|
||||
});
|
||||
|
||||
it('should display process category', async () => {
|
||||
@@ -98,7 +98,7 @@ describe('ProcessInstanceHeaderComponent', () => {
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
const valueEl = fixture.nativeElement.querySelector('[data-automation-id="card-dateitem-created"]');
|
||||
expect(valueEl.innerText).toBe('Nov 3, 2016');
|
||||
expect(valueEl.value).toBe('Nov 3, 2016');
|
||||
});
|
||||
|
||||
it('should display started by', async () => {
|
||||
|
Reference in New Issue
Block a user