@@ -48,6 +48,7 @@ describe('IgxGrid - Column Moving #grid', () => {
48
48
fixture = TestBed . createComponent ( MovableColumnsComponent ) ;
49
49
fixture . detectChanges ( ) ;
50
50
grid = fixture . componentInstance . grid ;
51
+ grid . moving = true ;
51
52
} ) ) ;
52
53
53
54
it ( 'Should be able to reorder columns.' , ( ( ) => {
@@ -264,33 +265,6 @@ describe('IgxGrid - Column Moving #grid', () => {
264
265
expect ( grid . getCellByColumn ( 0 , 'ID' ) . selected ) . toBeTruthy ( ) ;
265
266
} ) ) ;
266
267
267
-
268
-
269
- it ( 'Should reorder only movable columns when dropping the ghost image on an interactive area.' , ( async ( ) => {
270
- const headers : DebugElement [ ] = fixture . debugElement . queryAll ( By . css ( COLUMN_HEADER_CLASS ) ) ;
271
-
272
- expect ( grid . columnList . get ( 0 ) . movable ) . toBeTruthy ( ) ;
273
- expect ( grid . columnList . get ( 2 ) . movable ) . toBeFalsy ( ) ;
274
-
275
- // step 1 - verify columns are not reordered when
276
- // moving a column that is not movable
277
- const header = headers [ 2 ] . nativeElement ;
278
- UIInteractions . simulatePointerEvent ( 'pointerdown' , header , 450 , 75 ) ;
279
- await wait ( ) ;
280
- UIInteractions . simulatePointerEvent ( 'pointermove' , header , 455 , 81 ) ;
281
- await wait ( 50 ) ;
282
- UIInteractions . simulatePointerEvent ( 'pointermove' , header , 100 , 75 ) ;
283
- await wait ( ) ;
284
- UIInteractions . simulatePointerEvent ( 'pointerup' , header , 100 , 75 ) ;
285
- await wait ( ) ;
286
- fixture . detectChanges ( ) ;
287
-
288
- const columnsList = grid . columnList ;
289
- expect ( columnsList . get ( 0 ) . field ) . toEqual ( 'ID' ) ;
290
- expect ( columnsList . get ( 1 ) . field ) . toEqual ( 'Name' ) ;
291
- expect ( columnsList . get ( 2 ) . field ) . toEqual ( 'LastName' ) ;
292
- } ) ) ;
293
-
294
268
it ( 'Should not reorder columns when dropping the ghost image on a non-interactive area.' , ( async ( ) => {
295
269
const headers : DebugElement [ ] = fixture . debugElement . queryAll ( By . css ( COLUMN_HEADER_CLASS ) ) ;
296
270
@@ -735,6 +709,7 @@ describe('IgxGrid - Column Moving #grid', () => {
735
709
fixture = TestBed . createComponent ( MovableTemplatedColumnsComponent ) ;
736
710
fixture . detectChanges ( ) ;
737
711
grid = fixture . componentInstance . grid ;
712
+ grid . moving = true ;
738
713
} ) ) ;
739
714
740
715
it ( 'Should reorder movable columns with templated headers.' , ( async ( ) => {
@@ -771,6 +746,7 @@ describe('IgxGrid - Column Moving #grid', () => {
771
746
fixture = TestBed . createComponent ( MovableColumnsLargeComponent ) ;
772
747
fixture . detectChanges ( ) ;
773
748
grid = fixture . componentInstance . grid ;
749
+ grid . moving = true ;
774
750
} ) ) ;
775
751
776
752
it ( 'Should be able to scroll forwards to reorder columns that are out of view.' , ( async ( ) => {
@@ -1304,7 +1280,6 @@ describe('IgxGrid - Column Moving #grid', () => {
1304
1280
} ) ) ;
1305
1281
1306
1282
it ( 'Pinning - Should not be able to pin a column programmaticaly if disablePinning is enabled for that column' , ( async ( ) => {
1307
- const columnsList = grid . columnList ;
1308
1283
1309
1284
// step 1 - pin some columns
1310
1285
grid . getColumnByName ( 'Address' ) . pinned = true ;
@@ -1398,6 +1373,7 @@ describe('IgxGrid - Column Moving #grid', () => {
1398
1373
fixture = TestBed . createComponent ( MultiColumnHeadersComponent ) ;
1399
1374
fixture . detectChanges ( ) ;
1400
1375
grid = fixture . componentInstance . grid ;
1376
+ grid . moving = true ;
1401
1377
} ) ) ;
1402
1378
1403
1379
it ( 'MCH - should reorder only columns on the same level (top level simple column).' , ( async ( ) => {
0 commit comments