mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
This reverts commit 9b6688ce10
.
This commit is contained in:
committed by
GitHub
parent
de537f0a0d
commit
0576aac985
@@ -111,7 +111,7 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
await fixture.whenStable();
|
||||
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="header-startDate"] .adf-property-value'));
|
||||
expect(valueEl.nativeElement.value.trim()).toBe('Mar 9, 2019');
|
||||
expect(valueEl.nativeElement.innerText.trim()).toBe('Mar 9, 2019');
|
||||
});
|
||||
|
||||
it('should display lastModified date', async () => {
|
||||
@@ -121,7 +121,7 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
await fixture.whenStable();
|
||||
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="header-lastModified"] .adf-property-value'));
|
||||
expect(valueEl.nativeElement.value.trim()).toBe('Mar 9, 2019');
|
||||
expect(valueEl.nativeElement.innerText.trim()).toBe('Mar 9, 2019');
|
||||
});
|
||||
|
||||
it('should display parentId', async () => {
|
||||
@@ -216,8 +216,8 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
const lastModifiedElement = fixture.debugElement.query(By.css('[data-automation-id="header-lastModified"] .adf-property-value'));
|
||||
|
||||
expect(component.dateFormat).toEqual('full');
|
||||
expect(startedDateElement.nativeElement.value.trim()).toBe('Saturday, March 9, 2019 at 12:00:00 AM GMT+00:00');
|
||||
expect(lastModifiedElement.nativeElement.value.trim()).toBe('Saturday, March 9, 2019 at 12:00:00 AM GMT+00:00');
|
||||
expect(startedDateElement.nativeElement.innerText.trim()).toBe('Saturday, March 9, 2019 at 12:00:00 AM GMT+00:00');
|
||||
expect(lastModifiedElement.nativeElement.innerText.trim()).toBe('Saturday, March 9, 2019 at 12:00:00 AM GMT+00:00');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -506,7 +506,7 @@ describe('TaskHeaderCloudComponent', () => {
|
||||
const createdDateElement = fixture.debugElement.query(By.css('[data-automation-id="header-created"] .adf-property-value'));
|
||||
|
||||
expect(component.dateFormat).toEqual('full');
|
||||
expect(createdDateElement.nativeElement.value.trim()).toBe('Monday, December 17, 2018 at 12:00:00 AM GMT+00:00');
|
||||
expect(createdDateElement.nativeElement.innerText.trim()).toBe('Monday, December 17, 2018 at 12:00:00 AM GMT+00:00');
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user