diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-12-04 22:43:56 +0100 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-12-04 23:10:56 +0100 |
commit | 4950ca41979e194e89c1c58ea2b234e179d978f2 (patch) | |
tree | 2be60306d64f93db23759673176dd897438d9629 | |
parent | wsd: do not decode already decoded fields (diff) | |
download | online-4950ca41979e194e89c1c58ea2b234e179d978f2.tar.gz online-4950ca41979e194e89c1c58ea2b234e179d978f2.zip |
Revert "cypress: use moveCursor() helper method in table tests."
This reverts commit e1ed5d3c299f2664d108375a5ea3cb90814556a4.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9684921837ed6f55a74fb45750bff6c890996a59
-rw-r--r-- | cypress_test/integration_tests/mobile/writer/table_properties_spec.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js index cb22c7360f..e4b82e53e9 100644 --- a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js @@ -28,11 +28,11 @@ describe('Change table properties / layout via mobile wizard.', function() { .should('be.visible'); } - function selectFullTable(cursorMovementCount) { - // Move cursor out of the table. - for (var i = 0; i < cursorMovementCount; i++) { - helper.moveCursor('down'); - } + function selectFullTable() { + helper.typeIntoDocument('{downarrow}{downarrow}{downarrow}{downarrow}'); + + // TODO: solve this better. + cy.wait(1000); writerHelper.selectAllTextOfDoc(); } @@ -47,7 +47,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('.leaflet-marker-icon.table-row-resize-marker') .should('have.length', 4); - selectFullTable(3); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -70,7 +70,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('.leaflet-marker-icon.table-row-resize-marker') .should('have.length', 4); - selectFullTable(4); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -93,7 +93,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('.leaflet-marker-icon.table-column-resize-marker') .should('have.length', 4); - selectFullTable(3); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -116,7 +116,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('.leaflet-marker-icon.table-column-resize-marker') .should('have.length', 4); - selectFullTable(3); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -139,7 +139,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('.leaflet-marker-icon.table-row-resize-marker') .should('have.length', 2); - selectFullTable(2); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -204,7 +204,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#MergeCells'); - selectFullTable(2); + selectFullTable(); // Check rows / columns cy.get('#copy-paste-container tr') @@ -229,7 +229,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('#rowheight .spinfield') .should('have.attr', 'value', '1.4'); - selectFullTable(3); + selectFullTable(); // Check row height cy.get('#copy-paste-container td') @@ -249,7 +249,7 @@ describe('Change table properties / layout via mobile wizard.', function() { cy.get('#columnwidth .spinfield') .should('have.attr', 'value', '1.6'); - selectFullTable(3); + selectFullTable(); // Check row height cy.get('#copy-paste-container td') @@ -265,7 +265,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#SetMinimalRowHeight'); - selectFullTable(1); + selectFullTable(); // Check new row height cy.get('#copy-paste-container td') @@ -281,7 +281,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#SetOptimalRowHeight'); - selectFullTable(1); + selectFullTable(); // Check new row height cy.get('#copy-paste-container td') @@ -307,7 +307,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#DistributeRows'); - selectFullTable(1); + selectFullTable(); // Check new row height cy.get('#copy-paste-container td') @@ -333,7 +333,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#SetMinimalColumnWidth'); - selectFullTable(1); + selectFullTable(); cy.get('#copy-paste-container td') .should('have.attr', 'width', '24'); @@ -348,7 +348,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#SetOptimalColumnWidth'); - selectFullTable(1); + selectFullTable(); cy.get('#copy-paste-container td:nth-of-type(1n)') .should('have.attr', 'width', '324'); @@ -365,7 +365,7 @@ describe('Change table properties / layout via mobile wizard.', function() { helper.clickOnIdle('#DistributeColumns'); - selectFullTable(1); + selectFullTable(); cy.get('#copy-paste-container td') .should('have.attr', 'width', '323'); |