@@ -5204,6 +5204,44 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
52045204 const cellValues = GridFunctions . getColumnCells ( fix , 'ProductName' ) . map ( c => c . nativeElement . innerText ) . sort ( ) ;
52055205 expect ( cellValues ) . toEqual ( [ 'Web' , 'Web' ] ) ;
52065206 } ) ;
5207+
5208+ it ( 'Should display the default True and False resource strings in the search list for boolean column.' , fakeAsync ( ( ) => {
5209+ GridFunctions . clickExcelFilterIconFromCode ( fix , grid , 'Released' ) ;
5210+ flush ( ) ;
5211+
5212+ const searchComponent = GridFunctions . getExcelStyleSearchComponent ( fix ) ;
5213+ const listItems = GridFunctions . getExcelStyleSearchComponentListItems ( fix , searchComponent ) ;
5214+
5215+ expect ( listItems . length ) . toBe ( 4 , 'incorrect rendered list items count' ) ;
5216+ expect ( listItems [ 2 ] . innerText ) . toBe ( 'False' , 'incorrect list item label' ) ;
5217+ expect ( listItems [ 3 ] . innerText ) . toBe ( 'True' , 'incorrect list item label' ) ;
5218+
5219+ const checkboxes = GridFunctions . getExcelStyleFilteringCheckboxes ( fix ) ;
5220+ checkboxes [ 3 ] . click ( ) ;
5221+ tick ( ) ;
5222+ fix . detectChanges ( ) ;
5223+
5224+ GridFunctions . clickApplyExcelStyleFiltering ( fix ) ;
5225+ flush ( ) ;
5226+
5227+ expect ( grid . filteredData . length ) . toEqual ( 5 ) ;
5228+ } ) ) ;
5229+
5230+ it ( 'Should display the custom resource strings when specified in the search list for boolean column.' , fakeAsync ( ( ) => {
5231+ grid . resourceStrings . igx_grid_filter_false = 'No' ;
5232+ grid . resourceStrings . igx_grid_filter_true = 'Yes' ;
5233+ fix . detectChanges ( ) ;
5234+
5235+ GridFunctions . clickExcelFilterIconFromCode ( fix , grid , 'Released' ) ;
5236+ flush ( ) ;
5237+
5238+ const searchComponent = GridFunctions . getExcelStyleSearchComponent ( fix ) ;
5239+ const listItems = GridFunctions . getExcelStyleSearchComponentListItems ( fix , searchComponent ) ;
5240+
5241+ expect ( listItems . length ) . toBe ( 4 , 'incorrect rendered list items count' ) ;
5242+ expect ( listItems [ 2 ] . innerText ) . toBe ( 'No' , 'incorrect list item label' ) ;
5243+ expect ( listItems [ 3 ] . innerText ) . toBe ( 'Yes' , 'incorrect list item label' ) ;
5244+ } ) ) ;
52075245 } ) ;
52085246
52095247 describe ( 'Templates: ' , ( ) => {
0 commit comments