From df538b11d6470943dff568f1f04b49fae2576204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Wed, 26 May 2021 14:38:21 +0200 Subject: [PATCH] cypress: fix shape_properties_spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Szymon Kłos Change-Id: I0afcbf2fd9ba0c271a54fae08ba5f3548a14ac44 --- cypress_test/integration_tests/common/mobile_helper.js | 4 ++++ .../mobile/impress/apply_paragraph_props_shape_spec.js | 5 +++++ .../integration_tests/mobile/writer/shape_properties_spec.js | 2 ++ 3 files changed, 11 insertions(+) diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js index 38c5f8efb..648537076 100644 --- a/cypress_test/integration_tests/common/mobile_helper.js +++ b/cypress_test/integration_tests/common/mobile_helper.js @@ -122,6 +122,8 @@ function openMobileWizard() { .should('not.have.class', 'disabled') .click(); + cy.wait(1000); + // Mobile wizard is opened and it has content cy.get('#mobile-wizard-content') .should('not.be.empty'); @@ -303,6 +305,8 @@ function selectListBoxItem2(listboxSelector, item) { helper.clickOnIdle('.ui-combobox-text', item); + cy.wait(1000); + cy.get(listboxSelector + ' .ui-header-left') .should('have.text', item); diff --git a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js index 91f5fb45f..6d65d6031 100644 --- a/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js +++ b/cypress_test/integration_tests/mobile/impress/apply_paragraph_props_shape_spec.js @@ -21,7 +21,12 @@ describe('Apply paragraph properties on selected shape.', function() { function triggerNewSVG() { mobileHelper.closeMobileWizard(); + + cy.wait(1000); + impressHelper.triggerNewSVGForShapeInTheCenter(); + + cy.wait(1000); } function openParagraphPropertiesPanel() { diff --git a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js index 53897c926..ab4a5db3b 100644 --- a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js @@ -37,6 +37,8 @@ describe('Change shape properties via mobile wizard.', function() { function triggerNewSVG() { mobileHelper.closeMobileWizard(); + cy.wait(1000); + // Change width openPosSizePanel();