Skip to content

Commit 514ea8c

Browse files
committed
chore(time-picker): update test, #8135
1 parent 140b977 commit 514ea8c

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
@@ -1389,15 +1389,14 @@ describe('IgxTimePicker', () => {
13891389
expect(timePicker.onValidationFailed.emit).toHaveBeenCalled();
13901390
}));
13911391

1392-
it('should trigger onValueChanged if 00:00 is cleared from the input', fakeAsync(() => {
1392+
it('should trigger onValueChanged if 00:00 is cleared from the input', () => {
13931393
fixture.componentInstance.date = new Date(2018, 10, 27, 0, 0, 0, 0);
13941394
fixture.detectChanges();
13951395
spyOn(timePicker.onValueChanged, 'emit');
1396-
const clearButton = fixture.debugElement.queryAll(By.css('.igx-icon'))[1];
1397-
UIInteractions.simulateClickEvent(clearButton.nativeElement);
1396+
timePicker.clear();
13981397
fixture.detectChanges();
13991398
expect(timePicker.onValueChanged.emit).toHaveBeenCalledTimes(1);
1400-
}));
1399+
});
14011400

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

0 commit comments

Comments
 (0)