[Libreoffice-commits] online.git: cypress_test/integration_tests
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 10 10:50:57 UTC 2020
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.zolnai at collabora.com>
AuthorDate: Thu Jul 9 12:15:18 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at 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 <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at 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')
More information about the Libreoffice-commits
mailing list