@@ -20,7 +20,6 @@ import { wait } from '../../test-utils/ui-interactions.spec';
20
20
21
21
describe ( 'Row Pinning #grid' , ( ) => {
22
22
const FIXED_ROW_CONTAINER = '.igx-grid__tr--pinned ' ;
23
- const DISABLED_ROW = '.igx-grid__tr--disabled' ;
24
23
const CELL_CSS_CLASS = '.igx-grid__td' ;
25
24
const DEBOUNCE_TIME = 60 ;
26
25
configureTestSuite ( ) ;
@@ -304,7 +303,7 @@ describe('Row Pinning #grid', () => {
304
303
expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
305
304
} ) ;
306
305
307
- it ( 'should pin rows when columns are grouped.' , async ( ) => {
306
+ it ( 'should pin rows when columns are grouped.' , ( ) => {
308
307
grid . height = '650px' ;
309
308
fix . detectChanges ( ) ;
310
309
// pin 1st and 2nd data row
@@ -328,26 +327,17 @@ describe('Row Pinning #grid', () => {
328
327
expect ( dataRows . length ) . toEqual ( 9 ) ;
329
328
expect ( groupRows [ 0 ] . groupRow . records [ 0 ] . ID ) . toEqual ( 'ALFKI' ) ;
330
329
expect ( groupRows [ 0 ] . groupRow . records [ 1 ] . ID ) . toEqual ( 'AROUT' ) ;
331
- let disabledRows = fix . debugElement . queryAll ( By . css ( DISABLED_ROW ) ) ;
332
- // disabled rows in view should only one from the first group
333
- expect ( disabledRows . length ) . toBe ( 1 ) ;
334
330
335
331
// pin 4th data row with ID:AROUT
336
332
grid . pinRow ( fix . componentInstance . data [ 3 ] ) ;
337
333
fix . detectChanges ( ) ;
338
334
339
- await wait ( DEBOUNCE_TIME ) ;
340
- fix . detectChanges ( ) ;
341
-
342
335
expect ( grid . pinnedRows . length ) . toBe ( 3 ) ;
343
336
344
337
// make sure the pinned rows is in the unpinned area as disabled row
345
338
expect ( groupRows [ 0 ] . groupRow . records [ 0 ] . ID ) . toEqual ( 'ALFKI' ) ;
346
339
expect ( groupRows [ 0 ] . groupRow . records [ 1 ] . ID ) . toEqual ( 'AROUT' ) ;
347
340
expect ( groupRows [ 0 ] . groupRow . records [ 2 ] . ID ) . toEqual ( 'BLAUS' ) ;
348
- disabledRows = fix . debugElement . queryAll ( By . css ( DISABLED_ROW ) ) ;
349
- // disabled rows in view should two from the first group
350
- expect ( disabledRows . length ) . toBe ( 2 ) ;
351
341
} ) ;
352
342
353
343
it ( 'should apply filtering to both pinned and unpinned rows.' , ( ) => {
0 commit comments