File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
projects/igniteui-angular/src/lib/time-picker Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -539,11 +539,6 @@ describe('IgxTimePicker', () => {
539539 it ( 'should close the dropdown and keep the current selection on outside click in dialog mode' , fakeAsync ( ( ) => {
540540 fixture . componentInstance . mode = PickerInteractionMode . Dialog ;
541541 fixture . detectChanges ( ) ;
542- // close the time picker to avoid random fails, if the state is not clean
543- if ( ! timePicker . collapsed ) {
544- timePicker . close ( ) ;
545- fixture . detectChanges ( ) ;
546- }
547542
548543 inputGroup . triggerEventHandler ( 'click' , UIInteractions . getMouseEvent ( 'click' ) ) ;
549544 tick ( ) ;
@@ -554,8 +549,7 @@ describe('IgxTimePicker', () => {
554549 hourColumn . triggerEventHandler ( 'wheel' , event ) ;
555550 fixture . detectChanges ( ) ;
556551
557- const overlay = document . getElementsByClassName ( CSS_CLASS_OVERLAY ) [ 0 ] ;
558- const overlayWrapper = overlay . children [ 0 ] ;
552+ const overlayWrapper = document . getElementsByClassName ( CSS_CLASS_TIMEPICKER ) [ 0 ] . parentNode . parentNode ;
559553 UIInteractions . simulateClickEvent ( overlayWrapper ) ;
560554 tick ( ) ;
561555 fixture . detectChanges ( ) ;
You can’t perform that action at this time.
0 commit comments