Skip to content

Commit

Permalink
Merge pull request #7044 from plotly/test_for_5879
Browse files Browse the repository at this point in the history
Adjust failing modebar test after merging PR #5879
  • Loading branch information
archmoj committed Jul 17, 2024
2 parents e2653aa + cadbbf6 commit 5fde4d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/modebar/manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ function getButtonGroups(gd) {
enableHover('hoverClosestGl2d');
enableHover('hoverClosestPie');
} else if(b === 'v1hovermode') {
enableHover('toggleHover');
enableHover('hoverClosestCartesian');
enableHover('hoverCompareCartesian');
enableHover('hoverClosestGeo');
Expand Down
9 changes: 8 additions & 1 deletion test/jasmine/tests/modebar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ describe('ModeBar', function() {
]);
})
.then(function() {
expect(countButtons()).toBe(initial + 4, 'skip duplicates');
expect(countButtons()).toBe(initial + 5, 'skip duplicates');

return Plotly.relayout(gd, 'modebar.add', [
'drawline',
Expand All @@ -1656,6 +1656,13 @@ describe('ModeBar', function() {
})
.then(function() {
expect(countButtons()).toBe(initial);

return Plotly.relayout(gd, 'modebar.add', [
'togglehover'
]);
})
.then(function() {
expect(countButtons()).toBe(initial + 1, 'add togglehover');
})
.then(done, done.fail);
});
Expand Down

0 comments on commit 5fde4d9

Please sign in to comment.