diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.spec.ts b/src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.spec.ts index 14a8aeaecbe..539c1608a1c 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.spec.ts +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.spec.ts @@ -186,7 +186,7 @@ describe('Dynamic Dynamic Scrollable Dropdown component', () => { scrollableDropdownFixture.detectChanges(); de = scrollableDropdownFixture.debugElement.queryAll(By.css('button.dropdown-item')); - btnEl = de[0].nativeElement; + btnEl = de[1].nativeElement; btnEl.dispatchEvent(mousedownEvent); scrollableDropdownFixture.detectChanges();