@@ -46,7 +46,6 @@ import {
4646import { HelperUtils } from '../../test-utils/helper-utils.spec' ;
4747import { GridSelectionMode , FilterMode } from '../common/enums' ;
4848
49- const DEBOUNCETIME = 30 ;
5049const FILTER_UI_ROW = 'igx-grid-filtering-row' ;
5150const FILTER_UI_CELL = 'igx-grid-filtering-cell' ;
5251const FILTER_UI_SCROLL_START_CLASS = '.igx-grid__filtering-row-scroll-start' ;
@@ -669,25 +668,6 @@ describe('IgxGrid - Filtering actions #grid', () => {
669668 tick ( 100 ) ;
670669 fix . detectChanges ( ) ;
671670
672- sendInput ( input , '254..' , fix ) ;
673- tick ( ) ;
674- fix . detectChanges ( ) ;
675-
676-
677- expect ( grid . rowList . length ) . toEqual ( 6 ) ;
678- expect ( close . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
679- expect ( reset . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
680- expect ( input . nativeElement . offsetHeight ) . toBeGreaterThan ( 0 ) ;
681-
682- // open dropdown
683- filterIcon . nativeElement . click ( ) ;
684- tick ( ) ;
685- fix . detectChanges ( ) ;
686- // less than or equal to
687- ddItems [ 5 ] . click ( ) ;
688- tick ( 100 ) ;
689- fix . detectChanges ( ) ;
690-
691671 expect ( grid . rowList . length ) . toEqual ( 6 ) ;
692672 expect ( close . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
693673 expect ( reset . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
@@ -2865,9 +2845,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28652845 expect ( GridFunctions . getCurrentCellFromGrid ( grid , 1 , 1 ) . value ) . toBe ( 'Ignite UI for Angular' ) ;
28662846 } ) ) ;
28672847
2868- it ( 'Verify filter cell chip is scrolled into view on click.' , async ( ) => {
2848+ it ( 'Verify filter cell chip is scrolled into view on click.' , fakeAsync ( ( ) => {
28692849 grid . width = '470px' ;
2870- await wait ( DEBOUNCETIME ) ;
2850+ tick ( 100 ) ;
28712851 fix . detectChanges ( ) ;
28722852
28732853 // Verify 'ReleaseDate' filter chip is not fully visible.
@@ -2878,11 +2858,11 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28782858 'chip should not be fully visible and thus not within grid' ) ;
28792859
28802860 GridFunctions . clickFilterCellChip ( fix , 'ReleaseDate' ) ;
2881- await wait ( DEBOUNCETIME ) ;
2861+ tick ( 100 ) ;
28822862 fix . detectChanges ( ) ;
28832863
2884- grid . filteringRow . close ( ) ;
2885- await wait ( ) ;
2864+ GridFunctions . closeFilterRow ( fix ) ;
2865+ tick ( 100 ) ;
28862866 fix . detectChanges ( ) ;
28872867
28882868 // Verify 'ReleaseDate' filter chip is fully visible.
@@ -2891,7 +2871,7 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28912871 gridRect = grid . nativeElement . getBoundingClientRect ( ) ;
28922872 expect ( chipRect . left > gridRect . left && chipRect . right < gridRect . right ) . toBe ( true ,
28932873 'chip should be fully visible and within grid' ) ;
2894- } ) ;
2874+ } ) ) ;
28952875
28962876 it ( 'Verify condition chips are scrolled into/(out of) view by using arrow buttons.' , ( async ( ) => {
28972877 grid . width = '700px' ;
0 commit comments