Skip to content

Commit 1d1a690

Browse files
authored
Merge pull request #6317 from plotly/fix-flaky-sankey
Fix flaky sankey
2 parents 1f8b47c + 606e67c commit 1d1a690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/sankey_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ describe('sankey tests', function() {
13181318
.then(done, done.fail);
13191319
});
13201320

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) {
13221322
mockCopy.data[0].arrangement = arrangement;
13231323
var move = [50, -50];
13241324
var nodes;
@@ -1346,7 +1346,7 @@ describe('sankey tests', function() {
13461346

13471347
nodes = document.getElementsByClassName('sankey-node');
13481348
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
13501350
})
13511351
.then(function() {
13521352
x1 = gd._fullData[0].node.x.slice();

0 commit comments

Comments
 (0)