Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
airenzp authored and xzhou82 committed Oct 24, 2024
1 parent a52357d commit b060a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/mass/test/sampleScatter.integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ tape('Click zoom in, zoom out, and reset buttons', function (test) {

async function testZoomIn(scatter) {
const zoomin_bt = scatter.Inner.dom.toolsDiv.node().querySelector('div[name="sjpp-zoom-in-btn"]')
await detectTransform(scatter, zoomin_bt, 1.5)
await detectTransform(scatter, zoomin_bt, 1.2)
const scale = scatter.Inner.zoom
test.ok(scale > 1, `Plot should zoom in`)
}
Expand All @@ -866,7 +866,7 @@ tape('Click zoom in, zoom out, and reset buttons', function (test) {

async function testZoomOut(scatter) {
const zoomout_bt = scatter.Inner.dom.toolsDiv.node().querySelector('div[name="sjpp-zoom-out-btn"]')
await detectTransform(scatter, zoomout_bt, 0.5)
await detectTransform(scatter, zoomout_bt, 0.8)
const scale = scatter.Inner.zoom
test.ok(scale < 1, `Plot should zoom out`)
}
Expand Down

0 comments on commit b060a0a

Please sign in to comment.