cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js   |    8 
++------
 cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js |    8 
++------
 2 files changed, 4 insertions(+), 12 deletions(-)

New commits:
commit dea7f6cd057a6707ef85d8c154329e52c53572fa
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Thu Jul 9 12:15:18 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Fri Jul 10 12:50:38 2020 +0200

    cypress: use OnIdle methods in search dialog related tests.
    
    Change-Id: I94af320ea9fbcf17e765518f33995032ac90a892
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98428
    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/calc/hamburger_menu_spec.js 
b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
index 20f5fd986..f71983264 100644
--- a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
+++ b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
@@ -329,17 +329,13 @@ describe('Trigger hamburger menu options.', function() {
                cy.get('#mobile-wizard-content')
                        .should('not.be.empty');
 
-               cy.wait(1500);
-
                // Search for some word
-               cy.get('#searchterm')
-                       .type('a{enter}');
+               helper.inputOnIdle('#searchterm', 'a');
 
                cy.get('#search')
                        .should('not.have.attr', 'disabled');
 
-               cy.get('#search')
-                       .click();
+               helper.clickOnIdle('#search');
 
                // First cell should be selected
                cy.get('input#addressInput')
diff --git 
a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js 
b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js
index 41dabed7d..34201de9f 100644
--- a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js
@@ -658,17 +658,13 @@ describe('Trigger hamburger menu options.', function() {
                cy.get('#mobile-wizard-content')
                        .should('not.be.empty');
 
-               cy.wait(1500);
-
                // Search for some word
-               cy.get('#searchterm')
-                       .type('a{enter}');
+               helper.inputOnIdle('#searchterm', 'a');
 
                cy.get('#search')
                        .should('not.have.attr', 'disabled');
 
-               cy.get('#search')
-                       .click();
+               helper.clickOnIdle('#search');
 
                // Part of the text should be selected
                cy.get('.leaflet-marker-icon')
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to