summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-06-08 21:38:30 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-08-29 12:49:22 +0200
commit6209a5369818e95b03262cddf990ac5e4014a565 (patch)
tree83a8d8c7d823742a50e85ce1a65befdcc1d47bd4
parentRevert "Disable insert comment on spreadsheet for mobile" (diff)
downloadonline-6209a5369818e95b03262cddf990ac5e4014a565.tar.gz
online-6209a5369818e95b03262cddf990ac5e4014a565.zip
cypress: allow equality here.
Change-Id: I4c08590c9ea062467d0112e0877bf1a018623269 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95858 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit b289a2d3c589e3ddf5f49fef60439f56f46ca804) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101637
-rw-r--r--cypress_test/integration_tests/desktop/writer/form_field_spec.js8
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);
});
});
}