@@ -525,44 +525,6 @@ describe('IgxGrid - Validation #grid', () => {
525
525
expect ( ( grid . validation as any ) . getValidity ( ) . length ) . toEqual ( 0 ) ;
526
526
} ) ;
527
527
528
- it ( 'should update validity when all transactions are cleared' , ( ) => {
529
- const grid = fixture . componentInstance . grid as IgxGridComponent ;
530
- let cell = grid . gridAPI . get_cell_by_visible_index ( 1 , 1 ) ;
531
- let secondCell = grid . gridAPI . get_cell_by_visible_index ( 2 , 1 ) ;
532
-
533
- // update first cell
534
- UIInteractions . simulateDoubleClickAndSelectEvent ( cell . element ) ;
535
- cell . editMode = true ;
536
- cell . update ( 'IG' ) ;
537
- fixture . detectChanges ( ) ;
538
-
539
- grid . gridAPI . crudService . endEdit ( true ) ;
540
- fixture . detectChanges ( ) ;
541
-
542
- GridFunctions . verifyCellValid ( cell , false ) ;
543
-
544
- //update second cell
545
- UIInteractions . simulateDoubleClickAndSelectEvent ( secondCell . element ) ;
546
- secondCell . editMode = true ;
547
- secondCell . update ( 'bob' ) ;
548
- fixture . detectChanges ( ) ;
549
-
550
- grid . gridAPI . crudService . endEdit ( true ) ;
551
- fixture . detectChanges ( ) ;
552
- GridFunctions . verifyCellValid ( cell , false ) ;
553
- expect ( grid . validation . getInvalid ( ) . length ) . toBe ( 2 ) ;
554
-
555
-
556
- // clear transactions
557
- grid . transactions . clear ( ) ;
558
- fixture . detectChanges ( ) ;
559
- expect ( grid . validation . getInvalid ( ) . length ) . toBe ( 0 ) ;
560
-
561
-
562
- grid . validation . clear ( ) ;
563
- fixture . detectChanges ( ) ;
564
- } ) ;
565
-
566
528
it ( 'should not show errors when the row is deleted' , ( ) => {
567
529
const grid = fixture . componentInstance . grid as IgxGridComponent ;
568
530
let cell = grid . gridAPI . get_cell_by_visible_index ( 1 , 1 ) ;
0 commit comments