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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 18 18:52:53 UTC 2020


 cypress_test/integration_tests/common/mobile_helper.js |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit f99b6ae5dbf93a03e11755e0344642e1aedad300
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Jun 18 20:17:30 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Jun 18 20:52:34 2020 +0200

    cypress: make calc/bottom_toolbar_spec.js test more stable.
    
    Let's wait until all UI updating is finished, after editing
    is enabled.
    
    Change-Id: I57befdf0a873a189ba4555f384fa4dbee396f0b3
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96625
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js
index 8627cbd55..ca8ec398f 100644
--- a/cypress_test/integration_tests/common/mobile_helper.js
+++ b/cypress_test/integration_tests/common/mobile_helper.js
@@ -17,6 +17,18 @@ function enableEditingMobile() {
 	cy.get('#tb_actionbar_item_mobile_wizard')
 		.should('not.have.class', 'disabled');
 
+	// Wait until all UI update is finished.
+	cy.get('#toolbar-down')
+		.should('be.visible');
+
+	cy.get('#document-container')
+		.then(function(doc) {
+			if (doc.hasClass('spreadsheet-document')) {
+				cy.get('#formulabar')
+					.should('be.visible');
+			}
+		});
+
 	cy.log('Enabling editing mode - end.');
 }
 


More information about the Libreoffice-commits mailing list