@@ -123,18 +123,6 @@ describe('IgxTreeGrid - Integration #tGrid', () => {
123123 TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 3 ) ;
124124 } ) ;
125125
126- it ( '(API) should transform a non-tree column into a tree column when moving the original tree-column through' , ( ) => {
127- TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 4 ) ;
128-
129- // Move tree-column
130- const sourceColumn = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
131- const targetColumn = treeGrid . columnList . filter ( c => c . field === 'HireDate' ) [ 0 ] ;
132- treeGrid . moveColumn ( sourceColumn , targetColumn ) ;
133- fix . detectChanges ( ) ;
134-
135- TreeGridFunctions . verifyTreeColumn ( fix , 'Name' , 4 ) ;
136- } ) ;
137-
138126 it ( '(UI) should transform a non-tree column into a tree column when moving the original tree-column through' , async ( ) => {
139127 TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 4 ) ;
140128
@@ -161,6 +149,18 @@ describe('IgxTreeGrid - Integration #tGrid', () => {
161149 TreeGridFunctions . verifyTreeColumn ( fix , 'Name' , 4 ) ;
162150 } ) ;
163151
152+ it ( '(API) should transform a non-tree column into a tree column when moving the original tree-column through' , ( ) => {
153+ TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 4 ) ;
154+
155+ // Move tree-column
156+ const sourceColumn = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
157+ const targetColumn = treeGrid . columnList . filter ( c => c . field === 'HireDate' ) [ 0 ] ;
158+ treeGrid . moveColumn ( sourceColumn , targetColumn ) ;
159+ fix . detectChanges ( ) ;
160+
161+ TreeGridFunctions . verifyTreeColumn ( fix , 'Name' , 4 ) ;
162+ } ) ;
163+
164164 it ( '(API) should autosize tree-column' , ( ) => {
165165 const headerCell = TreeGridFunctions . getHeaderCell ( fix , 'ID' ) ;
166166 const column = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
@@ -312,18 +312,6 @@ describe('IgxTreeGrid - Integration #tGrid', () => {
312312 TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 4 ) ;
313313 } ) ;
314314
315- it ( '(API) should transform a non-tree column into a tree column when moving the original tree-column through' , ( ) => {
316- TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 5 ) ;
317-
318- // Move tree-column
319- const sourceColumn = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
320- const targetColumn = treeGrid . columnList . filter ( c => c . field === 'JobTitle' ) [ 0 ] ;
321- treeGrid . moveColumn ( sourceColumn , targetColumn ) ;
322- fix . detectChanges ( ) ;
323-
324- TreeGridFunctions . verifyTreeColumn ( fix , 'ParentID' , 5 ) ;
325- } ) ;
326-
327315 it ( '(UI) should transform a non-tree column into a tree column when moving the original tree-column through' , async ( ) => {
328316 TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 5 ) ;
329317
@@ -350,6 +338,18 @@ describe('IgxTreeGrid - Integration #tGrid', () => {
350338 TreeGridFunctions . verifyTreeColumn ( fix , 'ParentID' , 5 ) ;
351339 } ) ;
352340
341+ it ( '(API) should transform a non-tree column into a tree column when moving the original tree-column through' , ( ) => {
342+ TreeGridFunctions . verifyTreeColumn ( fix , 'ID' , 5 ) ;
343+
344+ // Move tree-column
345+ const sourceColumn = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
346+ const targetColumn = treeGrid . columnList . filter ( c => c . field === 'JobTitle' ) [ 0 ] ;
347+ treeGrid . moveColumn ( sourceColumn , targetColumn ) ;
348+ fix . detectChanges ( ) ;
349+
350+ TreeGridFunctions . verifyTreeColumn ( fix , 'ParentID' , 5 ) ;
351+ } ) ;
352+
353353 it ( '(API) should autosize tree-column' , ( ) => {
354354 const headerCell = TreeGridFunctions . getHeaderCell ( fix , 'ID' ) ;
355355 const column = treeGrid . columnList . filter ( c => c . field === 'ID' ) [ 0 ] ;
0 commit comments