Skip to content

Commit 90700da

Browse files
committed
Fix failure in click_test.js
* In the drag interactions tests, make sure the notifier doesn't hide the drag elements.
1 parent 03cad13 commit 90700da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/jasmine/tests/click_test.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ 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+
// Do not let the notifier hide the drag elements
185+
var tooltip = document.querySelector('.notifier-note');
186+
if(tooltip) tooltip.style.display = 'None';
187+
188+
done();
189+
});
184190
});
185191

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

0 commit comments

Comments
 (0)