Skip to content

Commit 20a6e69

Browse files
committed
test(grid): Fix selection with paging tests #488
1 parent 42370c7 commit 20a6e69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: projects/igniteui-angular/src/lib/grid/grid-selection.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ describe('IgxGrid - Row Selection', () => {
221221

222222
it('Should persist through paging', async(() => {
223223
const fix = TestBed.createComponent(GridWithPagingAndSelectionComponent);
224-
fix.detectChanges();
225224
const grid = fix.componentInstance.gridSelection2;
225+
fix.detectChanges();
226226
const gridElement: HTMLElement = fix.nativeElement.querySelector('.igx-grid');
227227
const nextBtn: HTMLElement = fix.nativeElement.querySelector('.nextPageBtn');
228228
const prevBtn: HTMLElement = fix.nativeElement.querySelector('.prevPageBtn');
@@ -1031,7 +1031,7 @@ export class GridWithPrimaryKeyComponent {
10311031

10321032
@Component({
10331033
template: `
1034-
<igx-grid #gridSelection2 [data]="data" [primaryKey]="'ID'"
1034+
<igx-grid #gridSelection2 [height]="'300px'" [data]="data" [primaryKey]="'ID'"
10351035
[autoGenerate]="true" [rowSelectable]="true" [paging]="true" [perPage]="50">
10361036
</igx-grid>
10371037
<button class="prevPageBtn" (click)="ChangePage(-1)">Prev page</button>

0 commit comments

Comments
 (0)