summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop/calc
diff options
context:
space:
mode:
authorRash419 <rashesh.padia@collabora.com>2023-03-09 16:32:55 +0530
committerpedropintosilva <65948705+pedropintosilva@users.noreply.github.com>2023-03-09 14:02:05 +0100
commit40abccbe317e2924a1c5094e922e6005cb6c1097 (patch)
tree175973af2917009d931683f5090796c5d5e4edc8 /cypress_test/integration_tests/desktop/calc
parentRemove vex from delete sheet modal. (diff)
downloadonline-40abccbe317e2924a1c5094e922e6005cb6c1097.tar.gz
online-40abccbe317e2924a1c5094e922e6005cb6c1097.zip
cypress: fix spreadsheet-tab1 element getting detached from dom
Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: I3ad4c775d08095493dbde02d67dcd5727c07a699
Diffstat (limited to 'cypress_test/integration_tests/desktop/calc')
-rw-r--r--cypress_test/integration_tests/desktop/calc/sheet_operation_spec.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/sheet_operation_spec.js b/cypress_test/integration_tests/desktop/calc/sheet_operation_spec.js
index a0cb33a80a..6cbc964bf3 100644
--- a/cypress_test/integration_tests/desktop/calc/sheet_operation_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/sheet_operation_spec.js
@@ -54,7 +54,7 @@ describe('Sheet Operations.', function () {
cy.get('#tb_spreadsheet-toolbar_item_insertsheet').click();
assertNumberofSheets(2);
- cy.get('#spreadsheet-tab1').click();
+ helper.clickOnIdle('#spreadsheet-tab1');
calcHelper.ensureViewContainsCellCursor();
@@ -62,10 +62,7 @@ describe('Sheet Operations.', function () {
calcHelper.ensureViewContainsCellCursor();
- helper.waitUntilIdle('#spreadsheet-tab0');
-
- cy.get('#spreadsheet-tab0').click();
-
+ helper.clickOnIdle('#spreadsheet-tab0');
calcHelper.ensureViewContainsCellCursor();
});