Skip to content

Commit e4b3b61

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adding test.
1 parent 701949d commit e4b3b61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.selection.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,15 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
661661
lastRow = childGrid.getRowByIndex(3);
662662
GridSelectionFunctions.verifyRowSelected(lastRow);
663663
});
664+
665+
it('should not select row on expander click.', () => {
666+
const firstRow = hierarchicalGrid.getRowByIndex(0) as IgxHierarchicalRowComponent;
667+
UIInteractions.clickElement(firstRow.expander);
668+
fix.detectChanges();
669+
670+
// check row is not selected
671+
GridSelectionFunctions.verifyRowSelected(firstRow, false);
672+
});
664673
});
665674

666675
describe('Row Selection CRUD', () => {

0 commit comments

Comments
 (0)