@@ -1443,9 +1443,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
14431443 expect ( filteringRow . queryAll ( By . css ( 'igx-chip' ) ) . length ) . toEqual ( 2 ) ;
14441444 } ) ) ;
14451445
1446- it ( 'Verify filter cell chip is scrolled into view on click.' , fakeAsync ( ( ) => {
1446+ it ( 'Verify filter cell chip is scrolled into view on click.' , async ( ) => {
14471447 grid . width = '470px' ;
1448- tick ( 100 ) ;
1448+ await wait ( DEBOUNCETIME ) ;
14491449 fix . detectChanges ( ) ;
14501450
14511451 // Verify 'ReleaseDate' filter chip is not fully visible.
@@ -1455,18 +1455,21 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
14551455 expect ( chipRect . right > gridRect . right ) . toBe ( true ,
14561456 'chip should not be fully visible and thus not within grid' ) ;
14571457
1458- GridFunctions . clickFilterCellChip ( fix , 'ReleaseDate' ) ;
1458+ GridFunctions . clickFilterCellChipUI ( fix , 'ReleaseDate' ) ;
1459+ await wait ( DEBOUNCETIME ) ;
1460+ fix . detectChanges ( ) ;
14591461
1460- GridFunctions . closeFilterRow ( fix ) ;
1461- tick ( 100 ) ;
1462+ grid . filteringRow . close ( ) ;
1463+ await wait ( ) ;
1464+ fix . detectChanges ( ) ;
14621465
14631466 // Verify 'ReleaseDate' filter chip is fully visible.
14641467 chip = GridFunctions . getFilterChipsForColumn ( 'ReleaseDate' , fix ) [ 0 ] . nativeElement ;
14651468 chipRect = chip . getBoundingClientRect ( ) ;
14661469 gridRect = grid . nativeElement . getBoundingClientRect ( ) ;
14671470 expect ( chipRect . left > gridRect . left && chipRect . right < gridRect . right ) . toBe ( true ,
14681471 'chip should be fully visible and within grid' ) ;
1469- } ) ) ;
1472+ } ) ;
14701473
14711474 it ( 'Verify condition chips are scrolled into/(out of) view by using arrow buttons.' , ( async ( ) => {
14721475 grid . width = '700px' ;
0 commit comments