Skip to content

Commit 58c9b63

Browse files
committed
chore(time-picker): update test, #8135
1 parent 18f7fe3 commit 58c9b63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

projects/igniteui-angular/src/lib/time-picker/time-picker.component.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,15 +1416,14 @@ describe('IgxTimePicker', () => {
14161416
expect(timePicker.onValidationFailed.emit).toHaveBeenCalled();
14171417
}));
14181418

1419-
it('should trigger onValueChanged if 00:00 is cleared from the input', fakeAsync(() => {
1419+
it('should trigger onValueChanged if 00:00 is cleared from the input', () => {
14201420
fixture.componentInstance.date = new Date(2018, 10, 27, 0, 0, 0, 0);
14211421
fixture.detectChanges();
14221422
spyOn(timePicker.onValueChanged, 'emit');
1423-
const clearButton = fixture.debugElement.queryAll(By.css('.igx-icon'))[1];
1424-
UIInteractions.simulateClickEvent(clearButton.nativeElement);
1423+
timePicker.clear();
14251424
fixture.detectChanges();
14261425
expect(timePicker.onValueChanged.emit).toHaveBeenCalledTimes(1);
1427-
}));
1426+
});
14281427

14291428
it('should scroll on dropdown opened and accept value when focus lost', fakeAsync(() => {
14301429
fixture.detectChanges();

0 commit comments

Comments
 (0)