From 31d3ab08117f5b4ca712737fa45eae5283e97d54 Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Tue, 26 Mar 2024 07:59:34 +0100 Subject: [PATCH] 113319: Fix dropdown component spec (cherry picked from commit 70357803e86caabc6357b7cbec9db1ef8edd2a56) --- .../dynamic-scrollable-dropdown.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();