@@ -46,6 +46,7 @@ import {
4646import { HelperUtils } from '../../test-utils/helper-utils.spec' ;
4747import { GridSelectionMode , FilterMode } from '../common/enums' ;
4848
49+ const DEBOUNCETIME = 30 ;
4950const FILTER_UI_ROW = 'igx-grid-filtering-row' ;
5051const FILTER_UI_CELL = 'igx-grid-filtering-cell' ;
5152const FILTER_UI_SCROLL_START_CLASS = '.igx-grid__filtering-row-scroll-start' ;
@@ -668,6 +669,25 @@ describe('IgxGrid - Filtering actions #grid', () => {
668669 tick ( 100 ) ;
669670 fix . detectChanges ( ) ;
670671
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+
671691 expect ( grid . rowList . length ) . toEqual ( 6 ) ;
672692 expect ( close . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
673693 expect ( reset . nativeElement . classList . contains ( 'igx-button--disabled' ) ) . toBeFalsy ( ) ;
@@ -2845,9 +2865,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28452865 expect ( GridFunctions . getCurrentCellFromGrid ( grid , 1 , 1 ) . value ) . toBe ( 'Ignite UI for Angular' ) ;
28462866 } ) ) ;
28472867
2848- it ( 'Verify filter cell chip is scrolled into view on click.' , fakeAsync ( ( ) => {
2868+ it ( 'Verify filter cell chip is scrolled into view on click.' , async ( ) => {
28492869 grid . width = '470px' ;
2850- tick ( 100 ) ;
2870+ await wait ( DEBOUNCETIME ) ;
28512871 fix . detectChanges ( ) ;
28522872
28532873 // Verify 'ReleaseDate' filter chip is not fully visible.
@@ -2858,11 +2878,11 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28582878 'chip should not be fully visible and thus not within grid' ) ;
28592879
28602880 GridFunctions . clickFilterCellChip ( fix , 'ReleaseDate' ) ;
2861- tick ( 100 ) ;
2881+ await wait ( DEBOUNCETIME ) ;
28622882 fix . detectChanges ( ) ;
28632883
2864- GridFunctions . closeFilterRow ( fix ) ;
2865- tick ( 100 ) ;
2884+ grid . filteringRow . close ( ) ;
2885+ await wait ( ) ;
28662886 fix . detectChanges ( ) ;
28672887
28682888 // Verify 'ReleaseDate' filter chip is fully visible.
@@ -2871,7 +2891,7 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
28712891 gridRect = grid . nativeElement . getBoundingClientRect ( ) ;
28722892 expect ( chipRect . left > gridRect . left && chipRect . right < gridRect . right ) . toBe ( true ,
28732893 'chip should be fully visible and within grid' ) ;
2874- } ) ) ;
2894+ } ) ;
28752895
28762896 it ( 'Verify condition chips are scrolled into/(out of) view by using arrow buttons.' , ( async ( ) => {
28772897 grid . width = '700px' ;
0 commit comments