diff options
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer/form_field_spec.js')
-rw-r--r-- | cypress_test/integration_tests/desktop/writer/form_field_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/form_field_spec.js b/cypress_test/integration_tests/desktop/writer/form_field_spec.js index 2b17e30493..4c37068f98 100644 --- a/cypress_test/integration_tests/desktop/writer/form_field_spec.js +++ b/cypress_test/integration_tests/desktop/writer/form_field_spec.js @@ -49,10 +49,10 @@ describe('Form field button tests.', function() { .should(function(frames) { expect(frames).to.have.lengthOf(1); var frameRect = frames[0].getBoundingClientRect(); - expect(frameRect.top).to.be.lessThan(cursorRect.top); - expect(frameRect.bottom).to.be.greaterThan(cursorRect.bottom); - expect(frameRect.left).to.be.lessThan(cursorRect.left); - expect(frameRect.right).to.be.greaterThan(cursorRect.right); + expect(frameRect.top).to.at.most(cursorRect.top); + expect(frameRect.bottom).to.be.at.least(cursorRect.bottom); + expect(frameRect.left).to.at.most(cursorRect.left); + expect(frameRect.right).to.be.at.least(cursorRect.right); }); }); } |