@@ -1128,7 +1128,7 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
1128
1128
const reset = editingBtns . queryAll ( By . css ( 'button' ) ) [ 0 ] ;
1129
1129
const close = editingBtns . queryAll ( By . css ( 'button' ) ) [ 1 ] ;
1130
1130
1131
- expect ( reset . nativeElement . innerText ) . toBe ( 'Reset' ) ;
1131
+ expect ( reset . nativeElement . childNodes [ 1 ] . textContent . trim ( ) ) . toBe ( 'Reset' ) ;
1132
1132
} ) ) ;
1133
1133
1134
1134
it ( 'Should correctly change resource strings for filter row using Changei18n.' , fakeAsync ( ( ) => {
@@ -1151,8 +1151,8 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
1151
1151
const reset = editingBtns . queryAll ( By . css ( 'button' ) ) [ 0 ] ;
1152
1152
const close = editingBtns . queryAll ( By . css ( 'button' ) ) [ 1 ] ;
1153
1153
1154
- expect ( close . nativeElement . innerText ) . toBe ( 'My close' ) ;
1155
- expect ( reset . nativeElement . innerText ) . toBe ( 'Reset' ) ;
1154
+ expect ( close . nativeElement . childNodes [ 1 ] . textContent . trim ( ) ) . toBe ( 'My close' ) ;
1155
+ expect ( reset . nativeElement . childNodes [ 1 ] . textContent . trim ( ) ) . toBe ( 'Reset' ) ;
1156
1156
1157
1157
changei18n ( {
1158
1158
igx_grid_filter : 'Filter' ,
@@ -1181,8 +1181,8 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
1181
1181
const reset = editingBtns . queryAll ( By . css ( 'button' ) ) [ 0 ] ;
1182
1182
const close = editingBtns . queryAll ( By . css ( 'button' ) ) [ 1 ] ;
1183
1183
1184
- expect ( close . nativeElement . innerText ) . toBe ( 'My close' ) ;
1185
- expect ( reset . nativeElement . innerText ) . toBe ( 'Reset' ) ;
1184
+ expect ( close . nativeElement . childNodes [ 1 ] . textContent . trim ( ) ) . toBe ( 'My close' ) ;
1185
+ expect ( reset . nativeElement . childNodes [ 1 ] . textContent . trim ( ) ) . toBe ( 'Reset' ) ;
1186
1186
} ) ) ;
1187
1187
1188
1188
it ( 'should correctly apply locale to datePicker.' , fakeAsync ( ( ) => {
0 commit comments