Skip to content

Commit 9032cb7

Browse files
committed
Pause before starting the drag-interaction tests
* The drag interaction tests in click_test.js may fail when run by `npm run test-jasmine` while they succeed if run by `npm run test-jasmine -- tests/click_test.js`. * These failures disappear when a pause of 200ms is introduced in the `beforeEach` after creating the plot. * Shorter pauses of 0, 10, 20, 50 and 100 ms fail.
1 parent a360992 commit 9032cb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/jasmine/tests/click_test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ describe('Test click interactions:', function() {
180180

181181
describe('drag interactions', function() {
182182
beforeEach(function(done) {
183-
Plotly.plot(gd, mockCopy.data, mockCopy.layout).then(done);
183+
Plotly.plot(gd, mockCopy.data, mockCopy.layout).then(function() {
184+
setTimeout(done, 200);
185+
});
184186
});
185187

186188
it('on nw dragbox should update the axis ranges', function(done) {

0 commit comments

Comments
 (0)