diff options
author | Rash419 <rashesh.padia@collabora.com> | 2022-01-24 21:41:21 +0530 |
---|---|---|
committer | Rashesh Padia <rasheshpadia419@gmail.com> | 2022-01-25 09:58:35 +0530 |
commit | 111d5f5483242173b46b08006002d99d2e831b53 (patch) | |
tree | 9d934e5271fb132dffedda18b74f3cb6ff774055 /cypress_test/integration_tests | |
parent | browser: improve logging by using custom logging methods instead of console o... (diff) | |
download | online-111d5f5483242173b46b08006002d99d2e831b53.tar.gz online-111d5f5483242173b46b08006002d99d2e831b53.zip |
cypress: fix: inconsistent text wrapping tests in calc
removed unnecessary 'retries' parameters from the tests we already
have default global value for retries no need for specific tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Idc78831ce240d4d840f3dbc785e66165c6e07d3d
Diffstat (limited to 'cypress_test/integration_tests')
6 files changed, 19 insertions, 19 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/delete_objects_spec.js b/cypress_test/integration_tests/desktop/writer/delete_objects_spec.js index d28fedf474..28f23d4f20 100644 --- a/cypress_test/integration_tests/desktop/writer/delete_objects_spec.js +++ b/cypress_test/integration_tests/desktop/writer/delete_objects_spec.js @@ -2,7 +2,7 @@ var helper = require('../../common/helper'); -describe('Delete Objects', {retries: 2}, function() { +describe('Delete Objects', function() { var origTestFileName = 'delete_objects.odt'; var testFileName; diff --git a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js index c68c376377..6022875c7d 100644 --- a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js +++ b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js @@ -26,12 +26,12 @@ describe('Change alignment settings.', function() { helper.getCursorPos('left', 'currentTextEndPos'); //remove text selection - cy.get('#tb_actionbar_item_acceptformula').then($ele =>{ - cy.wait(1000); - if (Cypress.dom.isVisible($ele)) { - cy.wrap($ele).click(); - } - }); + cy.get('#tb_actionbar_item_acceptformula').should('be.visible') + .then($ele =>{ + if (Cypress.dom.isVisible($ele)) { + cy.wrap($ele).click(); + } + }); cy.get('.cursor-overlay .blinking-cursor') .should('not.exist'); diff --git a/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js b/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js index 83cc6155cf..10bbe80125 100644 --- a/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js +++ b/cypress_test/integration_tests/mobile/calc/bottom_toolbar_spec.js @@ -28,12 +28,12 @@ describe('Interact with bottom toolbar.', function() { helper.getCursorPos('left', 'currentTextEndPos'); - cy.get('#tb_actionbar_item_acceptformula').then($ele =>{ - cy.wait(1000); - if (Cypress.dom.isVisible($ele)) { - cy.wrap($ele).click(); - } - }); + cy.get('#tb_actionbar_item_acceptformula').should('be.visible') + .then($ele =>{ + if (Cypress.dom.isVisible($ele)) { + cy.wrap($ele).click(); + } + }); cy.get('.cursor-overlay .blinking-cursor') .should('not.exist'); diff --git a/cypress_test/integration_tests/multiuser/calc/repair_document_spec.js b/cypress_test/integration_tests/multiuser/calc/repair_document_spec.js index 20a971a9c0..4b71525645 100644 --- a/cypress_test/integration_tests/multiuser/calc/repair_document_spec.js +++ b/cypress_test/integration_tests/multiuser/calc/repair_document_spec.js @@ -66,11 +66,11 @@ describe.skip('Repair Document', function() { helper.expectTextForClipboard('Hello World', frameId1); } - it('Repair by user-2', { retries : 2 }, function() { + it('Repair by user-2', function() { repairDoc('#iframe1', '#iframe2'); }); - it('Repair by user-1', { retries : 2 }, function() { + it('Repair by user-1', function() { repairDoc('#iframe2', '#iframe1'); }); }); diff --git a/cypress_test/integration_tests/multiuser/impress/repair_document_spec.js b/cypress_test/integration_tests/multiuser/impress/repair_document_spec.js index 6da35a2ae7..ff982505f9 100644 --- a/cypress_test/integration_tests/multiuser/impress/repair_document_spec.js +++ b/cypress_test/integration_tests/multiuser/impress/repair_document_spec.js @@ -62,11 +62,11 @@ describe.skip('Repair Document', function() { helper.expectTextForClipboard('Hello', frameId1); } - it('Repair by user-2', { retries : 2 }, function() { + it('Repair by user-2', function() { repairDoc('#iframe1', '#iframe2'); }); - it('Repair by user-1', { retries : 2 }, function() { + it('Repair by user-1', function() { repairDoc('#iframe2', '#iframe1'); }); }); diff --git a/cypress_test/integration_tests/multiuser/writer/repair_document_spec.js b/cypress_test/integration_tests/multiuser/writer/repair_document_spec.js index fbc19f72ef..bfabf94c4d 100644 --- a/cypress_test/integration_tests/multiuser/writer/repair_document_spec.js +++ b/cypress_test/integration_tests/multiuser/writer/repair_document_spec.js @@ -43,11 +43,11 @@ describe('Repair Document', function() { helper.expectTextForClipboard('\nHello \n', frameId1); } - it('Repair by user-2', { retries : 2 }, function() { + it('Repair by user-2', function() { repairDoc('#iframe1', '#iframe2'); }); - it('Repair by user-1', { retries : 2 }, function() { + it('Repair by user-1', function() { repairDoc('#iframe2', '#iframe1'); }); |