Skip to content

Commit 6437081

Browse files
committed
add delay in bar select test (to pass on CI)
1 parent 9d86a2f commit 6437081

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/jasmine/tests/select_test.js

+10
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,16 @@ describe('Test select box and lasso per trace:', function() {
916916
.then(function() {
917917
return Plotly.relayout(gd, 'dragmode', 'select');
918918
})
919+
.then(function() {
920+
// For some reason we need this to make the following tests pass
921+
// on CI consistently. It appears that a double-click action
922+
// is being confused with a mere click. See
923+
// https://github.com/plotly/plotly.js/pull/2135#discussion_r148897529
924+
// for more info.
925+
return new Promise(function(resolve) {
926+
setTimeout(resolve, 100);
927+
});
928+
})
919929
.then(function() {
920930
return _run(
921931
[[350, 200], [370, 220]],

0 commit comments

Comments
 (0)