@@ -3113,9 +3113,39 @@ describe('IgxGrid - Advanced Filtering #grid - ', () => {
31133113 GridFunctions . clickAdvancedFilteringColumnSelect ( fix ) ;
31143114 fix . detectChanges ( ) ;
31153115 const dropdownValues = GridFunctions . getAdvancedFilteringSelectDropdownItems ( fix ) . map ( ( x : any ) => x . innerText ) ;
3116- const expectedValues = [ 'ID' , 'ProductName' , 'Downloads' , 'Released' , 'ReleaseDate' , 'Another Field' ] ;
3116+ const expectedValues = [ 'ID' , 'ProductName' , 'Downloads' , 'Released' , 'ReleaseDate' , 'Another Field' , 'DateTimeCreated' ] ;
31173117 expect ( expectedValues ) . toEqual ( dropdownValues ) ;
31183118 } ) ) ;
3119+
3120+ it ( 'Should correctly focus the search value input when editing the filtering expression' , fakeAsync ( ( ) => {
3121+ // Open dialog through API.
3122+ grid . openAdvancedFilteringDialog ( ) ;
3123+ fix . detectChanges ( ) ;
3124+
3125+ //Create dateTime filtering expression
3126+ const tree = new FilteringExpressionsTree ( FilteringLogic . And ) ;
3127+ tree . filteringOperands . push ( {
3128+ fieldName : 'DateTimeCreated' , searchVal : '11/11/2000 10:11:11 AM' , condition : IgxStringFilteringOperand . instance ( ) . condition ( 'equals' )
3129+ } ) ;
3130+
3131+ grid . advancedFilteringExpressionsTree = tree ;
3132+ fix . detectChanges ( ) ;
3133+
3134+ // Hover the last visible expression chip
3135+ const expressionItem = fix . nativeElement . querySelectorAll ( `.${ ADVANCED_FILTERING_EXPRESSION_ITEM_CLASS } ` ) [ 0 ] ;
3136+ expressionItem . dispatchEvent ( new MouseEvent ( 'mouseenter' ) ) ;
3137+ tick ( ) ;
3138+ fix . detectChanges ( ) ;
3139+
3140+ // Click the edit icon to enter edit mode of the expression.
3141+ GridFunctions . clickAdvancedFilteringTreeExpressionChipEditIcon ( fix , [ 0 ] ) ;
3142+ tick ( ) ;
3143+ fix . detectChanges ( ) ;
3144+
3145+ //Check for the active element
3146+ let searchValueInput = GridFunctions . getAdvancedFilteringValueInput ( fix ) . querySelector ( 'input' ) ;
3147+ expect ( document . activeElement ) . toBe ( searchValueInput , 'The input should be the active element.' ) ;
3148+ } ) ) ;
31193149 } ) ;
31203150
31213151 describe ( 'External - ' , ( ) => {
0 commit comments