Skip to content

Commit 70e3f02

Browse files
committed
chore(*): Fix tests failing due to wrapped angular.
1 parent ab8cfff commit 70e3f02

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

projects/igniteui-angular/grids/grid/src/grid.groupby.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ViewChild, TemplateRef, QueryList } from '@angular/core';
1+
import { Component, ViewChild, TemplateRef, QueryList } from '@angular/core';
22
import { formatNumber } from '@angular/common'
33
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
44
import { By } from '@angular/platform-browser';
@@ -2615,11 +2615,16 @@ describe('IgxGrid - GroupBy #grid', () => {
26152615

26162616
// scroll down
26172617
grid.verticalScrollContainer.getScroll().scrollTop = 10000;
2618+
await wait(100); // Triggers onStable
2619+
fix.detectChanges();
2620+
2621+
dataRows = grid.dataRowList.toArray();
2622+
// Workaround for await wait triggering onStable prematurely
2623+
(grid as any)._restoreVirtState(dataRows[7]);
26182624
await wait(100);
26192625
fix.detectChanges();
26202626

26212627
// verify rows are scrolled to the right
2622-
dataRows = grid.dataRowList.toArray();
26232628
dataRows.forEach(dr => {
26242629
const virtualization = dr.virtDirRow;
26252630
// should be at last chunk

0 commit comments

Comments
 (0)