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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 13 13:48:12 UTC 2020


 cypress_test/integration_tests/common/helper.js |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 7455f69dd72e0c69705f1f2fbdad4f0033115f06
Author:     Tamás Zolnai <zolnaitamas2000 at gmail.com>
AuthorDate: Fri Mar 13 12:36:50 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Mar 13 14:47:53 2020 +0100

    cypress: mobile: improve core detection code.
    
    Pushing ESC has an unexpected side-effect
    on some tests.
    
    Change-Id: I147fcc3aaac21e56450eececf60e8cb99b49655f
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90467
    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/common/helper.js b/cypress_test/integration_tests/common/helper.js
index fddafdf22..b9b26fa83 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -74,6 +74,9 @@ function detectLOCoreVersion() {
 			.contains('About')
 			.click();
 
+		cy.get('.vex-content')
+			.should('exist');
+
 		// Get the version
 		cy.get('#lokit-version')
 			.then(function(items) {
@@ -86,8 +89,11 @@ function detectLOCoreVersion() {
 			});
 
 		// Close about dialog
-		cy.get('body')
-			.type('{esc}');
+		cy.get('.vex-close')
+			.click({force : true});
+
+		cy.get('.vex-content')
+			.should('not.exist');
 	}
 }
 


More information about the Libreoffice-commits mailing list