File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments