File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1318,7 +1318,7 @@ describe('sankey tests', function() {
1318
1318
. then ( done , done . fail ) ;
1319
1319
} ) ;
1320
1320
1321
- it ( '@flaky should persist the position of every nodes after drag in attributes nodes.(x|y)' , function ( done ) {
1321
+ it ( 'should persist the position of every nodes after drag in attributes nodes.(x|y)' , function ( done ) {
1322
1322
mockCopy . data [ 0 ] . arrangement = arrangement ;
1323
1323
var move = [ 50 , - 50 ] ;
1324
1324
var nodes ;
@@ -1346,7 +1346,7 @@ describe('sankey tests', function() {
1346
1346
1347
1347
nodes = document . getElementsByClassName ( 'sankey-node' ) ;
1348
1348
node = nodes . item ( nodes . length - 1 ) ; // Dragged node is now the last one
1349
- return drag ( { node : node , dpos : move } ) ;
1349
+ return drag ( { node : node , dpos : move , timeDelay : arrangement === 'snap' ? 200 : 0 } ) ; // Wait for animation to finish
1350
1350
} )
1351
1351
. then ( function ( ) {
1352
1352
x1 = gd . _fullData [ 0 ] . node . x . slice ( ) ;
You can’t perform that action at this time.
0 commit comments