From 14ebd35d2f785b8e1c1f0f8583ba7a3a6f6b11d1 Mon Sep 17 00:00:00 2001 From: AMarinov Date: Thu, 10 May 2018 11:33:19 +0300 Subject: [PATCH] chore(dropdown): Adding tests #984 --- src/drop-down/drop-down.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drop-down/drop-down.component.spec.ts b/src/drop-down/drop-down.component.spec.ts index 6818f12a273..329f853ac0b 100644 --- a/src/drop-down/drop-down.component.spec.ts +++ b/src/drop-down/drop-down.component.spec.ts @@ -37,7 +37,7 @@ describe("IgxDropDown ", () => { button.click(mockObj); fixture.whenStable().then(() => { fixture.detectChanges(); - const currentItem = fixture.debugElement.queryAll(By.css("." + CSS_CLASS_SELECTED))[0]; + const currentItem = fixture.debugElement.queryAll(By.css("." + CSS_CLASS_FOCUSED))[0]; expect(currentItem.componentInstance.index).toEqual(0); currentItem.triggerEventHandler("keydown.ArrowDown", mockObj); return fixture.whenStable();