diff options
author | Rash419 <rashesh.padia@collabora.com> | 2022-08-04 20:46:26 +0530 |
---|---|---|
committer | Rashesh Padia <rasheshpadia419@gmail.com> | 2022-08-05 01:06:13 +0530 |
commit | cff30c51d52e5ec510a69e6066f141b2e5c0dd03 (patch) | |
tree | a9bec3029da0b7ae0699f1f3fcf9f36be465fc02 /cypress_test/integration_tests/desktop/calc | |
parent | Remove residual callback code (diff) | |
download | online-cff30c51d52e5ec510a69e6066f141b2e5c0dd03.tar.gz online-cff30c51d52e5ec510a69e6066f141b2e5c0dd03.zip |
cypress: fix: ui-pushbutton element keeps getting detached
clickonIdle waits for the DOM element to be idle so test doesnot fail due to ui flickering
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I43b0800b23970326a4a6e84bfc662b67fea4f364
Diffstat (limited to 'cypress_test/integration_tests/desktop/calc')
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/macro_spec.js | 3 | ||||
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/open_different_file_types_spec.js | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/macro_spec.js b/cypress_test/integration_tests/desktop/calc/macro_spec.js index cc0192dd08..aa4e70e982 100644 --- a/cypress_test/integration_tests/desktop/calc/macro_spec.js +++ b/cypress_test/integration_tests/desktop/calc/macro_spec.js @@ -10,8 +10,7 @@ describe('macro dialog tests', function() { cy.get('#MacroWarnMedium.jsdialog') .should('exist'); - cy.get('#MacroWarnMedium.jsdialog #ok') - .click(); + helper.clickOnIdle('#MacroWarnMedium.jsdialog #ok'); } beforeEach(function() { diff --git a/cypress_test/integration_tests/desktop/calc/open_different_file_types_spec.js b/cypress_test/integration_tests/desktop/calc/open_different_file_types_spec.js index 1745156000..8238c46561 100644 --- a/cypress_test/integration_tests/desktop/calc/open_different_file_types_spec.js +++ b/cypress_test/integration_tests/desktop/calc/open_different_file_types_spec.js @@ -72,8 +72,7 @@ describe('Open different file types', function () { cy.get('form.jsdialog-container.lokdialog_container') .should('exist'); - cy.contains('.ui-pushbutton', 'OK') - .click(); + helper.clickOnIdle('.ui-pushbutton', 'OK'); //check doc is loaded cy.get('.leaflet-canvas-container canvas', {timeout : Cypress.config('defaultCommandTimeout') * 2.0}); |