@@ -610,9 +610,10 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
610610 expect ( filterChip . componentInstance . selected ) . toBeFalsy ( ) ;
611611 } ) ) ;
612612
613- xit ( 'Should complete the filter when focusing out of the input' , fakeAsync ( ( ) => {
613+ it ( 'Should complete the filter when focusing out of the input' , fakeAsync ( ( ) => {
614614 const filterValue = 'an' ;
615615 GridFunctions . clickFilterCellChip ( fix , 'ProductName' ) ;
616+ tick ( 16 ) ; // onConditionsChanged rAF
616617
617618 GridFunctions . typeValueInFilterRowInput ( filterValue , fix ) ;
618619
@@ -622,7 +623,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
622623 expect ( filterChip . componentInstance . selected ) . toBeTruthy ( ) ;
623624
624625 grid . nativeElement . focus ( ) ;
625- grid . filteringRow . onInputGroupFocusout ( ) ;
626626 fix . detectChanges ( ) ;
627627 tick ( 100 ) ;
628628
@@ -4300,7 +4300,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
43004300 expect ( operatorsDropdownToggle ) . not . toBeNull ( ) ;
43014301 } ) ) ;
43024302
4303- xit ( 'Should open calendar when clicking date-picker of custom expression.' , fakeAsync ( ( ) => {
4303+ it ( 'Should open calendar when clicking date-picker of custom expression.' , fakeAsync ( ( ) => {
43044304 // Open excel style custom filtering dialog.
43054305 GridFunctions . clickExcelFilterIcon ( fix , 'ReleaseDate' ) ;
43064306 tick ( 100 ) ;
@@ -4311,19 +4311,19 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
43114311 tick ( 200 ) ;
43124312
43134313 const expr = GridFunctions . getExcelCustomFilteringDateExpressions ( fix ) [ 0 ] ;
4314- const datePicker = fix . debugElement . query ( By . directive ( IgxDatePickerComponent ) ) ;
4315- expect ( datePicker ) . not . toBeNull ( ) ;
4314+ const datePicker = expr . querySelector ( 'igx-date-picker' ) ;
43164315
43174316 // Verify calendar is not opened.
4318- let calendar = fix . debugElement . query ( By . directive ( IgxCalendarComponent ) ) ;
4317+ let calendar = expr . querySelector ( 'igx-calendar' ) ;
43194318 expect ( calendar ) . toBeNull ( ) ;
43204319
4321- // Click date picker input to open calendar.
4322- datePicker . triggerEventHandler ( 'click' , null ) ;
4320+ const input = datePicker . querySelector ( 'input' ) ;
4321+ UIInteractions . simulateClickEvent ( input ) ;
43234322 fix . detectChanges ( ) ;
4323+ expect ( datePicker ) . not . toBeNull ( ) ;
43244324
43254325 // Verify calendar is opened.
4326- calendar = fix . debugElement . query ( By . directive ( IgxCalendarComponent ) ) ;
4326+ calendar = grid . nativeElement . querySelector ( 'igx-calendar' ) ;
43274327 expect ( calendar ) . not . toBeNull ( ) ;
43284328
43294329 // Click-off to close calendar.
0 commit comments