Skip to content

Commit

Permalink
test(grid-selection): update should select all rows programatically #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofdiamond5 committed Aug 8, 2019
1 parent ee7b766 commit bcb3ef3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,16 @@ describe('IgxGrid - Row Selection', () => {
expect(firstRow.isSelected).toBeTruthy();
expect(secondRow.isSelected).toBeTruthy();

firstRowCheckbox.dispatchEvent(new Event('click', {}));
grid.deselectAllRows();
fixture.detectChanges();

expect(firstRow.isSelected).toBeFalsy();
expect(secondRow.isSelected).toBeFalsy();

firstRowCheckbox.click();
fixture.detectChanges();

expect(firstRow.isSelected).toBeTruthy();
}));

it('Should be able to programatically select all rows with a correct reference, #1297', () => {
Expand Down

0 comments on commit bcb3ef3

Please sign in to comment.