@@ -5040,8 +5040,8 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
50405040
50415041 // Verify the results are with 'today' date.
50425042 const filteredDate = SampleTestData . today ;
5043- const inputText = formatDate ( filteredDate , column . pipeArgs . format , grid . locale ) ;
5044- expect ( ( input as HTMLInputElement ) . value ) . toMatch ( inputText ) ;
5043+ const datePickerDebugEl = fix . debugElement . query ( By . directive ( IgxDatePickerComponent ) ) ;
5044+ expect ( datePickerDebugEl . componentInstance . value ) . toEqual ( filteredDate ) ;
50455045
50465046 // Click 'apply' button to apply filter.
50475047 GridFunctions . clickApplyExcelStyleCustomFiltering ( fix ) ;
@@ -5122,8 +5122,8 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
51225122
51235123 // Verify the results are with 'today' date.
51245124 const filteredDate = SampleTestData . today ;
5125- const inputText = formatDate ( filteredDate , column . pipeArgs . format , grid . locale ) ;
5126- expect ( ( input as HTMLInputElement ) . value ) . toMatch ( inputText ) ;
5125+ const datePickerDebugEl = fix . debugElement . query ( By . directive ( IgxDatePickerComponent ) ) ;
5126+ expect ( datePickerDebugEl . componentInstance . value ) . toEqual ( filteredDate ) ;
51275127
51285128 // Click 'apply' button to apply filter.
51295129 GridFunctions . clickApplyExcelStyleCustomFiltering ( fix ) ;
@@ -5169,8 +5169,8 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
51695169
51705170 // Verify the results are with 'today' date.
51715171 const filteredDate = SampleTestData . today ;
5172- const inputText = formatDate ( filteredDate , column . pipeArgs . format , grid . locale ) ;
5173- expect ( ( input as HTMLInputElement ) . value ) . toMatch ( inputText ) ;
5172+ const datePickerDebugEl = fix . debugElement . query ( By . directive ( IgxDatePickerComponent ) ) ;
5173+ expect ( datePickerDebugEl . componentInstance . value ) . toEqual ( filteredDate ) ;
51745174
51755175 // Click 'apply' button to apply filter.
51765176 GridFunctions . clickApplyExcelStyleCustomFiltering ( fix ) ;
@@ -5336,8 +5336,8 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
53365336
53375337 // Verify the results are with 'today' date.
53385338 const filteredDate = SampleTestData . today ;
5339- const inputText = formatDate ( filteredDate , column . pipeArgs . format , grid . locale ) ;
5340- expect ( ( input as HTMLInputElement ) . value ) . toMatch ( inputText ) ;
5339+ const datePickerDebugEl = fix . debugElement . query ( By . directive ( IgxDatePickerComponent ) ) ;
5340+ expect ( datePickerDebugEl . componentInstance . value ) . toEqual ( filteredDate ) ;
53415341
53425342 // Click 'apply' button to apply filter.
53435343 GridFunctions . clickApplyExcelStyleCustomFiltering ( fix ) ;
0 commit comments