Skip to content

Commit 5a5483f

Browse files
committed
test(dmn-js-shared): relax test
1 parent cc414b2 commit 5a5483f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/dmn-js-shared/test/spec/components/InputSelectSpec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ describe('components/InputSelect', function() {
225225
const inputSelectBounds = inputSelect.getBoundingClientRect();
226226
const optionsBounds = options.getBoundingClientRect();
227227

228-
expect(optionsBounds.top).to.eql(inputSelectBounds.height + inputSelectBounds.top);
229-
expect(optionsBounds.left).to.eql(inputSelectBounds.left);
228+
expect(optionsBounds.top)
229+
.to.be.closeTo(inputSelectBounds.height + inputSelectBounds.top, 1);
230+
expect(optionsBounds.left).to.be.closeTo(inputSelectBounds.left, 1);
230231
});
231232

232233

0 commit comments

Comments
 (0)