@@ -24,6 +24,8 @@ import { IgxTabsModule, IgxTabsComponent } from '../../tabs/public_api';
2424import { GridSelectionMode } from '../common/enums' ;
2525import { registerLocaleData } from '@angular/common' ;
2626import localeDE from '@angular/common/locales/de' ;
27+ import { FilteringExpressionsTree } from '../../data-operations/filtering-expressions-tree' ;
28+ import { FilteringLogic } from '../../data-operations/filtering-expression.interface' ;
2729
2830
2931describe ( 'IgxGrid Component Tests #grid' , ( ) => {
@@ -347,7 +349,7 @@ describe('IgxGrid Component Tests #grid', () => {
347349 grid . filter ( columns [ 0 ] . field , 546000 , IgxNumberFilteringOperand . instance ( ) . condition ( 'equals' ) ) ;
348350 fixture . detectChanges ( ) ;
349351 tick ( 100 ) ;
350- expect ( gridBody . nativeElement . textContent ) . toEqual ( grid . emptyFilteredGridMessage ) ;
352+ expect ( gridBody . nativeElement . textContent ) . not . toEqual ( grid . emptyFilteredGridMessage ) ;
351353 expect ( parseInt ( window . getComputedStyle ( gridBody . nativeElement ) . height , 10 ) ) . toBe ( 548 ) ;
352354
353355 // Clear filter and check if grid's body height is restored based on all loaded rows
@@ -399,7 +401,7 @@ describe('IgxGrid Component Tests #grid', () => {
399401 grid . filter ( columns [ 0 ] . field , 546000 , IgxNumberFilteringOperand . instance ( ) . condition ( 'equals' ) ) ;
400402 fixture . detectChanges ( ) ;
401403 tick ( 100 ) ;
402- expect ( gridBody . nativeElement . textContent ) . toEqual ( grid . emptyFilteredGridMessage ) ;
404+ expect ( gridBody . nativeElement . textContent ) . not . toEqual ( grid . emptyFilteredGridMessage ) ;
403405
404406 // Clear filter and check if grid's body height is restored based on all loaded rows
405407 grid . clearFilter ( columns [ 0 ] . field ) ;
@@ -486,7 +488,14 @@ describe('IgxGrid Component Tests #grid', () => {
486488 it ( 'should render loading indicator when loading is enabled and the grid has empty filtering pre-applied' , fakeAsync ( ( ) => {
487489 const fixture = TestBed . createComponent ( IgxGridTestComponent ) ;
488490 const grid = fixture . componentInstance . grid ;
489- grid . filter ( 'index' , 0 , IgxNumberFilteringOperand . instance ( ) . condition ( 'equals' ) , true ) ;
491+ grid . filteringExpressionsTree = new FilteringExpressionsTree ( FilteringLogic . And ) ;
492+ grid . filteringExpressionsTree . filteringOperands = [
493+ {
494+ condition : IgxNumberFilteringOperand . instance ( ) . condition ( 'equals' ) ,
495+ fieldName : 'index' ,
496+ searchVal : 0
497+ }
498+ ] ;
490499 grid . isLoading = true ;
491500 fixture . detectChanges ( ) ;
492501 tick ( 16 ) ;
0 commit comments