[Libreoffice-commits] online.git: cypress_test/integration_tests

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 8 22:05:28 UTC 2020


 cypress_test/integration_tests/desktop/writer/form_field_spec.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b289a2d3c589e3ddf5f49fef60439f56f46ca804
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Jun 8 21:38:30 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Tue Jun 9 00:05:08 2020 +0200

    cypress: allow equality here.
    
    Change-Id: I4c08590c9ea062467d0112e0877bf1a018623269
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95858
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

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 2b17e3049..4c37068f9 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);
 					});
 			});
 	}


More information about the Libreoffice-commits mailing list