@@ -3,7 +3,7 @@ import { TestBed, fakeAsync, tick } from '@angular/core/testing';
3
3
import { By } from '@angular/platform-browser' ;
4
4
import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
5
5
import { IgxGridComponent } from './grid.component' ;
6
- import { CellType , IgxGridModule , IPinRowEventArgs } from './public_api' ;
6
+ import { CellType , IgxColumnComponent , IPinRowEventArgs } from './public_api' ;
7
7
import { configureTestSuite } from '../../test-utils/configure-suite' ;
8
8
import { ColumnPinningPosition , RowPinningPosition } from '../common/enums' ;
9
9
import { IPinningConfig } from '../grid.common' ;
@@ -16,6 +16,8 @@ import { wait, UIInteractions } from '../../test-utils/ui-interactions.spec';
16
16
import { clearGridSubs , setupGridScrollDetection } from '../../test-utils/helper-utils.spec' ;
17
17
import { GridRowConditionalStylingComponent } from '../../test-utils/grid-base-components.spec' ;
18
18
import { SortingDirection } from '../../data-operations/sorting-strategy' ;
19
+ import { NgFor , NgIf } from '@angular/common' ;
20
+ import { IgxColumnLayoutComponent } from '../columns/column-layout.component' ;
19
21
20
22
describe ( 'Row Pinning #grid' , ( ) => {
21
23
const FIXED_ROW_CONTAINER = '.igx-grid__tr--pinned ' ;
@@ -27,17 +29,16 @@ describe('Row Pinning #grid', () => {
27
29
28
30
configureTestSuite ( ( ( ) => {
29
31
return TestBed . configureTestingModule ( {
30
- declarations : [ GridRowConditionalStylingComponent ] ,
31
- imports : [
32
- NoopAnimationsModule ,
33
- IgxGridModule ,
34
- GridRowPinningComponent ,
35
- GridRowPinningWithMRLComponent ,
36
- GridRowPinningWithMDVComponent ,
37
- GridRowPinningWithTransactionsComponent ,
38
- GridRowPinningWithInitialPinningComponent
39
- ]
40
- } ) ;
32
+ declarations : [ GridRowConditionalStylingComponent ] ,
33
+ imports : [
34
+ NoopAnimationsModule ,
35
+ GridRowPinningComponent ,
36
+ GridRowPinningWithMRLComponent ,
37
+ GridRowPinningWithMDVComponent ,
38
+ GridRowPinningWithTransactionsComponent ,
39
+ GridRowPinningWithInitialPinningComponent
40
+ ]
41
+ } ) ;
41
42
} ) ) ;
42
43
43
44
describe ( '' , ( ) => {
@@ -1369,7 +1370,7 @@ describe('Row Pinning #grid', () => {
1369
1370
</igx-grid>
1370
1371
` ,
1371
1372
standalone : true ,
1372
- imports : [ IgxGridModule ]
1373
+ imports : [ IgxGridComponent , IgxPaginatorComponent , NgIf ]
1373
1374
} )
1374
1375
export class GridRowPinningComponent {
1375
1376
@ViewChild ( IgxGridComponent , { read : IgxGridComponent , static : true } )
@@ -1396,7 +1397,7 @@ export class GridRowPinningComponent {
1396
1397
</igx-grid>
1397
1398
` ,
1398
1399
standalone : true ,
1399
- imports : [ IgxGridModule ]
1400
+ imports : [ IgxGridComponent , IgxColumnLayoutComponent , IgxColumnComponent , NgFor ]
1400
1401
} )
1401
1402
export class GridRowPinningWithMRLComponent extends GridRowPinningComponent {
1402
1403
public cols : Array < any > = [
@@ -1430,7 +1431,7 @@ export class GridRowPinningWithMRLComponent extends GridRowPinningComponent {
1430
1431
</ng-template>
1431
1432
</igx-grid>` ,
1432
1433
standalone : true ,
1433
- imports : [ IgxGridModule ]
1434
+ imports : [ IgxGridComponent ]
1434
1435
} )
1435
1436
export class GridRowPinningWithMDVComponent extends GridRowPinningComponent { }
1436
1437
@@ -1448,7 +1449,7 @@ export class GridRowPinningWithMDVComponent extends GridRowPinningComponent { }
1448
1449
</igx-grid>
1449
1450
` ,
1450
1451
standalone : true ,
1451
- imports : [ IgxGridModule ]
1452
+ imports : [ IgxGridComponent ]
1452
1453
} )
1453
1454
export class GridRowPinningWithTransactionsComponent extends GridRowPinningComponent { }
1454
1455
@@ -1465,7 +1466,7 @@ export class GridRowPinningWithTransactionsComponent extends GridRowPinningCompo
1465
1466
</igx-grid>
1466
1467
` ,
1467
1468
standalone : true ,
1468
- imports : [ IgxGridModule ]
1469
+ imports : [ IgxGridComponent ]
1469
1470
} )
1470
1471
export class GridRowPinningWithInitialPinningComponent implements OnInit {
1471
1472
@ViewChild ( IgxGridComponent , { read : IgxGridComponent , static : true } )
0 commit comments