cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js |   11 
+++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit dc5c44f712dfbaa42a8a0fe171638ca241799a93
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Thu Jul 9 07:54:24 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Thu Jul 9 09:09:13 2020 +0200

    cypress: avoid failure of time field insertion (impress, mobile).
    
    Change-Id: I0330ae701a8d6a84f2cb57bc5ccef88f9fe56ecf
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98394
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git 
a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js 
b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
index 6c65caf8f..2627c4642 100644
--- a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
+++ b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
@@ -19,7 +19,7 @@ describe('Impress insertion wizard.', function() {
                helper.afterAll(testFileName);
        });
 
-       function selectionShouldBeTextShape() {
+       function selectionShouldBeTextShape(checkTextShape = true) {
                // Check that the shape is there
                cy.get('.leaflet-pane.leaflet-overlay-pane svg')
                        .should(function(svg) {
@@ -27,8 +27,9 @@ describe('Impress insertion wizard.', function() {
                                
expect(svg[0].getBBox().height).to.be.greaterThan(0);
                        });
 
-               cy.get('.leaflet-pane.leaflet-overlay-pane svg 
g.com\\.sun\\.star\\.drawing\\.TextShape')
-                       .should('exist');
+               if (checkTextShape)
+                       cy.get('.leaflet-pane.leaflet-overlay-pane svg 
g.com\\.sun\\.star\\.drawing\\.TextShape')
+                               .should('exist');
 
                // Check also that the shape is fully visible
                // TODO: shapes are hungs out of the slide after insertion
@@ -260,7 +261,7 @@ describe('Impress insertion wizard.', function() {
                        .click();
 
                // Check that the shape is there
-               selectionShouldBeTextShape();
+               selectionShouldBeTextShape(false);
 
                // Check the text
                impressMobileHelper.selectTextOfShape();
@@ -280,7 +281,7 @@ describe('Impress insertion wizard.', function() {
                        .click();
 
                // Check that the shape is there
-               selectionShouldBeTextShape();
+               selectionShouldBeTextShape(false);
 
                // Check the text
                impressMobileHelper.selectTextOfShape();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to