@@ -551,16 +551,16 @@ describe('IgxSlider', () => {
551551 } ) ;
552552
553553 it ( 'labels should show/hide on pointer up/down' , async ( ) => {
554- const sliderEl = fixture . debugElement . query ( By . css ( SLIDER_CLASS ) ) . nativeElement ;
555- sliderEl . dispatchEvent ( new PointerEvent ( 'pointerdown' , { pointerId : 1 } ) ) ;
554+ const sliderEl = fixture . debugElement . query ( By . css ( SLIDER_CLASS ) ) ;
555+ sliderEl . nativeElement . dispatchEvent ( new PointerEvent ( 'pointerdown' , { pointerId : 1 } ) ) ;
556556 await wait ( 50 ) ;
557557 fixture . detectChanges ( ) ;
558558
559559 expect ( sliderEl ) . toBeDefined ( ) ;
560- let activeThumb = fixture . debugElement . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
560+ let activeThumb = sliderEl . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
561561 expect ( activeThumb ) . not . toBeNull ( ) ;
562562
563- sliderEl . dispatchEvent ( new PointerEvent ( 'pointerup' , { pointerId : 1 } ) ) ;
563+ sliderEl . nativeElement . dispatchEvent ( new PointerEvent ( 'pointerup' , { pointerId : 1 } ) ) ;
564564 await wait ( slider . thumbLabelVisibilityDuration + 10 ) ;
565565 fixture . detectChanges ( ) ;
566566
@@ -569,26 +569,26 @@ describe('IgxSlider', () => {
569569 } ) ;
570570
571571 it ( 'should be able to change thumbLabelVisibilityDuration' , async ( ) => {
572- const sliderEl = fixture . debugElement . query ( By . css ( SLIDER_CLASS ) ) . nativeElement ;
572+ const sliderEl = fixture . debugElement . query ( By . css ( SLIDER_CLASS ) ) ;
573573 slider . thumbLabelVisibilityDuration = 1000 ;
574- sliderEl . dispatchEvent ( new PointerEvent ( 'pointerdown' , { pointerId : 1 } ) ) ;
574+ sliderEl . nativeElement . dispatchEvent ( new PointerEvent ( 'pointerdown' , { pointerId : 1 } ) ) ;
575575 await wait ( 50 ) ;
576576 fixture . detectChanges ( ) ;
577577
578578 expect ( sliderEl ) . toBeDefined ( ) ;
579- let activeThumb = fixture . debugElement . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
579+ let activeThumb = sliderEl . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
580580 expect ( activeThumb ) . not . toBeNull ( ) ;
581581
582- sliderEl . dispatchEvent ( new PointerEvent ( 'pointerup' , { pointerId : 1 } ) ) ;
582+ sliderEl . nativeElement . dispatchEvent ( new PointerEvent ( 'pointerup' , { pointerId : 1 } ) ) ;
583583 await wait ( 750 ) ;
584584 fixture . detectChanges ( ) ;
585585
586- activeThumb = fixture . debugElement . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
586+ activeThumb = sliderEl . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
587587 expect ( activeThumb ) . not . toBeNull ( ) ;
588588
589589 await wait ( 300 ) ;
590590 fixture . detectChanges ( ) ;
591- activeThumb = fixture . debugElement . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
591+ activeThumb = sliderEl . query ( By . css ( '.igx-slider__thumb-to--active' ) ) ;
592592 expect ( activeThumb ) . toBeNull ( ) ;
593593 } ) ;
594594
0 commit comments