mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Updated test cases for SearchDateRangeAdvancedComponent. Minor updates to the component template and logic. Component no longer uses getters and setters in template
This commit is contained in:
committed by
Jatin_Chugh
parent
b59ea2600a
commit
18586bb760
+2
-1
@@ -63,12 +63,13 @@ describe('SearchDateRangeAdvancedComponent', () => {
|
||||
fixture.detectChanges();
|
||||
};
|
||||
|
||||
const selectDropdownOption = (itemId: string) => {
|
||||
const selectDropdownOption = async (itemId: string) => {
|
||||
const matSelect = fixture.debugElement.query(By.css('[data-automation-id="date-range-advanced-in-last-dropdown"]')).nativeElement;
|
||||
matSelect.click();
|
||||
fixture.detectChanges();
|
||||
const matOption = fixture.debugElement.query(By.css(`[data-automation-id="${itemId}"]`)).nativeElement;
|
||||
matOption.click();
|
||||
await fixture.whenStable();
|
||||
fixture.detectChanges();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user