Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
sankey_test: increase position tolerance to run on CI
  • Loading branch information
antoinerg committed Dec 3, 2019
commit 1c29be9c0f35bb29b7a8819e2ee4863d6ed4cdd0
8 changes: 4 additions & 4 deletions test/jasmine/tests/sankey_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ describe('sankey tests', function() {

var g = d3.select('.hovertext');
var pos = g.node().getBoundingClientRect();
expect(pos.x).toBeCloseTo(555, 0, 'it should have correct x position');
expect(pos.y).toBeCloseTo(196, 0, 'it should have correct y position');
expect(pos.x).toBeCloseTo(555, -1.5, 'it should have correct x position');
expect(pos.y).toBeCloseTo(196, -1.5, 'it should have correct y position');
return Plotly.restyle(gd, 'orientation', 'v');
})
.then(function() {
Expand All @@ -806,8 +806,8 @@ describe('sankey tests', function() {

var g = d3.select('.hovertext');
var pos = g.node().getBoundingClientRect();
expect(pos.x).toBeCloseTo(279, 0, 'it should have correct x position');
expect(pos.y).toBeCloseTo(500, 0, 'it should have correct y position');
expect(pos.x).toBeCloseTo(279, -1.5, 'it should have correct x position');
expect(pos.y).toBeCloseTo(500, -1.5, 'it should have correct y position');
})
.catch(failTest)
.then(done);
Expand Down