[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:
swapnil.verma
2023-07-27 11:14:48 +05:30
committed by Jatin_Chugh
parent b59ea2600a
commit 18586bb760
@@ -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();
};