mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-7768] ADF Form fields cleanup (#11484)
* [ACS-7768] ADF Form fields cleanup * [ACS-7768] CR fixes * [ACS-7768] Bring back label condition * ACS-7768 Fixing storybook build * [ACS-7768] Fix rebase issues --------- Co-authored-by: Ehsan Rezaei <ehsan.rezaei@hyland.com>
This commit is contained in:
co-authored by
Ehsan Rezaei
parent
b2c105dd67
commit
1028df91da
+4
-4
@@ -110,7 +110,7 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="header-startDate"] .adf-property-value'));
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="card-date-value-startDate"]'));
|
||||
expect(valueEl.nativeElement.innerText.trim()).toBe('Mar 9, 2019');
|
||||
});
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="header-lastModified"] .adf-property-value'));
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="card-date-value-lastModified"]'));
|
||||
expect(valueEl.nativeElement.innerText.trim()).toBe('Mar 9, 2019');
|
||||
});
|
||||
|
||||
@@ -212,8 +212,8 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
it('should format the dates based on app config format configuration', async () => {
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const startedDateElement = fixture.debugElement.query(By.css('[data-automation-id="header-startDate"] .adf-property-value'));
|
||||
const lastModifiedElement = fixture.debugElement.query(By.css('[data-automation-id="header-lastModified"] .adf-property-value'));
|
||||
const startedDateElement = fixture.debugElement.query(By.css('[data-automation-id="card-date-value-startDate"]'));
|
||||
const lastModifiedElement = fixture.debugElement.query(By.css('[data-automation-id="card-date-value-lastModified"]'));
|
||||
|
||||
expect(component.dateFormat).toEqual('full');
|
||||
expect(startedDateElement.nativeElement.innerText.trim()).toBe('Saturday, March 9, 2019 at 12:00:00 AM GMT+00:00');
|
||||
|
||||
+1
-1
@@ -503,7 +503,7 @@ describe('TaskHeaderCloudComponent', () => {
|
||||
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const createdDateElement = fixture.debugElement.query(By.css('[data-automation-id="header-created"] .adf-property-value'));
|
||||
const createdDateElement = fixture.debugElement.query(By.css('[data-automation-id="card-date-value-created"]'));
|
||||
|
||||
expect(component.dateFormat).toEqual('full');
|
||||
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