Skip to content

Commit b2975c9

Browse files
committed
split namelength test to reduce flakiness
1 parent 7f1645d commit b2975c9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/jasmine/tests/gl3d_plot_interact_test.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,20 @@ describe('Test gl3d plots', function() {
226226
}
227227
);
228228
})
229-
.then(function() { return Plotly.restyle(gd, 'hoverlabel.namelength', 3); })
229+
.catch(failTest)
230+
.then(done);
231+
});
232+
233+
it('@gl should honor *hoverlabel.namelength*', function(done) {
234+
var _mock = Lib.extendDeep({}, multipleScatter3dMock);
235+
236+
function _hover() {
237+
mouseEvent('mouseover', 300, 200);
238+
}
239+
240+
Plotly.plot(gd, _mock)
230241
.then(delay(20))
242+
.then(function() { return Plotly.restyle(gd, 'hoverlabel.namelength', 3); })
231243
.then(_hover)
232244
.then(delay(20))
233245
.then(function() {

0 commit comments

Comments
 (0)