Skip to content

Commit 5449f30

Browse files
committed
try targeting <g.legend> to rm CI flakiness
1 parent 05089a3 commit 5449f30

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/jasmine/tests/legend_test.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ describe('legend interaction', function() {
10291029
});
10301030
});
10311031

1032-
describe('@flaky visible toggle', function() {
1032+
describe('visible toggle', function() {
10331033
var gd;
10341034

10351035
beforeEach(function() {
@@ -1048,8 +1048,10 @@ describe('legend interaction', function() {
10481048
function clickAt(p) {
10491049
return function() {
10501050
return new Promise(function(resolve) {
1051-
mouseEvent('mousedown', p[0], p[1]);
1052-
mouseEvent('mouseup', p[0], p[1]);
1051+
var el = d3.select('g.legend').node();
1052+
var opts = {element: el};
1053+
mouseEvent('mousedown', p[0], p[1], opts);
1054+
mouseEvent('mouseup', p[0], p[1], opts);
10531055
setTimeout(resolve, DBLCLICKDELAY + 20);
10541056
});
10551057
};

0 commit comments

Comments
 (0)