cypress_test/integration_tests/common/helper.js | 2 +- cypress_test/integration_tests/desktop/shape_operations_spec.js | 3 +-- cypress_test/integration_tests/mobile/insert_object_spec.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-)
New commits: commit 65d8f4062f13cd1a7eb65309b5a8939917d5c694 Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Sat Feb 8 11:18:57 2020 +0100 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Sat Feb 8 17:43:30 2020 +0100 cypress: Fix tests failing with CI. Change-Id: Iea1292bf44d77403356b3e9800c2af4c2237d08d diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js index 1489a9e50..c881d60df 100644 --- a/cypress_test/integration_tests/common/helper.js +++ b/cypress_test/integration_tests/common/helper.js @@ -73,7 +73,7 @@ function copyTextToClipboard() { }); // Execute copy - cy.get('.ui-header.level-0.mobile-wizard.ui-widget .menu-entry-with-icon .context-menu-link') + cy.get('.ui-header.level-0.mobile-wizard.ui-widget .menu-entry-with-icon .context-menu-link', {timeout : 10000}) .contains('Copy') .click(); diff --git a/cypress_test/integration_tests/desktop/shape_operations_spec.js b/cypress_test/integration_tests/desktop/shape_operations_spec.js index 2abd9fbd6..241af3a33 100644 --- a/cypress_test/integration_tests/desktop/shape_operations_spec.js +++ b/cypress_test/integration_tests/desktop/shape_operations_spec.js @@ -27,9 +27,8 @@ describe('Shape operations', function() { // Check whether the rectangle was inserted as an SVG cy.get('.leaflet-pane.leaflet-overlay-pane svg') .then(function(svg) { - expect(svg).to.have.lengthOf(1); expect(svg[0].getBBox().width).to.be.greaterThan(0); - expect(svg[0].getBBox().height).to.be.greaterThan(0); + expect(svg[0].getBBox().height).to.be.greaterThan(0); }); }); }); diff --git a/cypress_test/integration_tests/mobile/insert_object_spec.js b/cypress_test/integration_tests/mobile/insert_object_spec.js index e514ed5f9..58935135e 100644 --- a/cypress_test/integration_tests/mobile/insert_object_spec.js +++ b/cypress_test/integration_tests/mobile/insert_object_spec.js @@ -356,7 +356,6 @@ describe('Insert objects via insertion wizard.', function() { cy.get('.leaflet-pane.leaflet-overlay-pane svg') .then(function(svg) { - expect(svg).to.have.lengthOf(1); expect(svg[0].getBBox().width).to.be.greaterThan(0); expect(svg[0].getBBox().height).to.be.greaterThan(0); }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits