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() {
1029
1029
} ) ;
1030
1030
} ) ;
1031
1031
1032
- describe ( '@flaky visible toggle' , function ( ) {
1032
+ describe ( 'visible toggle' , function ( ) {
1033
1033
var gd ;
1034
1034
1035
1035
beforeEach ( function ( ) {
@@ -1048,8 +1048,10 @@ describe('legend interaction', function() {
1048
1048
function clickAt ( p ) {
1049
1049
return function ( ) {
1050
1050
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 ) ;
1053
1055
setTimeout ( resolve , DBLCLICKDELAY + 20 ) ;
1054
1056
} ) ;
1055
1057
} ;
You can’t perform that action at this time.
0 commit comments