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

New commits:
commit 7455f69dd72e0c69705f1f2fbdad4f0033115f06
Author:     Tamás Zolnai <zolnaitamas2...@gmail.com>
AuthorDate: Fri Mar 13 12:36:50 2020 +0100
Commit:     Tamás Zolnai <tamas.zol...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@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');
        }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to