@@ -167,7 +167,7 @@ describe('IgxGrid - Validation #grid', () => {
167167 cell = grid . gridAPI . get_cell_by_visible_index ( 1 , 1 ) ;
168168 //min length should be 4
169169 GridFunctions . verifyCellValid ( cell , false ) ;
170- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
170+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
171171 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
172172 } ) ;
173173
@@ -186,7 +186,7 @@ describe('IgxGrid - Validation #grid', () => {
186186 cell = grid . gridAPI . get_cell_by_visible_index ( 1 , 4 ) ;
187187 //min length should be 4
188188 GridFunctions . verifyCellValid ( cell , false ) ;
189- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
189+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
190190 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
191191 } ) ;
192192
@@ -204,7 +204,7 @@ describe('IgxGrid - Validation #grid', () => {
204204 //min length should be 4
205205 GridFunctions . verifyCellValid ( cell , false ) ;
206206 GridSelectionFunctions . verifyCellActive ( cell , true ) ;
207- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
207+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
208208 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
209209
210210 const overlayService = TestBed . inject ( IgxOverlayService ) ;
@@ -390,7 +390,7 @@ describe('IgxGrid - Validation #grid', () => {
390390 cell = grid . gridAPI . get_cell_by_visible_index ( 1 , 1 ) ;
391391 //bob cannot be the name
392392 GridFunctions . verifyCellValid ( cell , false ) ;
393- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
393+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
394394 expect ( erorrMessage ) . toEqual ( ' This name is forbidden. ' ) ;
395395
396396 cell . editMode = true ;
@@ -425,7 +425,7 @@ describe('IgxGrid - Validation #grid', () => {
425425 fixture . detectChanges ( ) ;
426426
427427 GridFunctions . verifyCellValid ( cell , false ) ;
428- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
428+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
429429 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
430430 } ) ;
431431
@@ -444,7 +444,7 @@ describe('IgxGrid - Validation #grid', () => {
444444 fixture . detectChanges ( ) ;
445445
446446 GridFunctions . verifyCellValid ( cell , false ) ;
447- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
447+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
448448 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
449449 } ) ;
450450
@@ -472,7 +472,7 @@ describe('IgxGrid - Validation #grid', () => {
472472 grid . crudService . endEdit ( true ) ;
473473 fixture . detectChanges ( ) ;
474474 GridFunctions . verifyCellValid ( cell , false ) ;
475- const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 1 ] . textContent ;
475+ const erorrMessage = cell . errorTooltip . first . elementRef . nativeElement . children [ 0 ] . textContent ;
476476 expect ( erorrMessage ) . toEqual ( ' Entry should be at least 4 character(s) long ' ) ;
477477 } ) ;
478478 } ) ;
0 commit comments