diff options
author | Rash419 <rashesh.padia@collabora.com> | 2022-06-03 16:18:56 +0530 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-06-06 12:48:30 +0000 |
commit | 443bd5b773579ff110f6f1a8cbcaaec578def54b (patch) | |
tree | da34a00228a49d63135aa57d3cd1a61f8ea6344c /cypress_test/integration_tests | |
parent | ignore if comment is selected while pasting (diff) | |
download | online-backport/4856/distro/collabora/co-21-11.tar.gz online-backport/4856/distro/collabora/co-21-11.zip |
cypress: re-enable impress/table_operation_spec.js
backport/4856/distro/collabora/co-21-11
modify the test to use 2x2 table when testing 'insert column before/after' tests
no idea why we don't get svg when there is 3x2 table
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id927fede691c4483206fa2b65c450f11cc980581
Diffstat (limited to 'cypress_test/integration_tests')
-rw-r--r-- | cypress_test/integration_tests/mobile/impress/table_operation_spec.js | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/cypress_test/integration_tests/mobile/impress/table_operation_spec.js b/cypress_test/integration_tests/mobile/impress/table_operation_spec.js index 6385afbca5..cd8578d471 100644 --- a/cypress_test/integration_tests/mobile/impress/table_operation_spec.js +++ b/cypress_test/integration_tests/mobile/impress/table_operation_spec.js @@ -104,9 +104,16 @@ describe('Table Operation', function() { .should('have.attr', 'y', '5644'); }); - it.skip('Insert column before.', function() { + it('Insert column before.', function() { selectFullTable(); + helper.typeIntoDocument('{downarrow}'); + + clickOnTableOperation('deleterows'); + + cy.get('.leaflet-marker-icon.table-row-resize-marker') + .should('have.length', 2); + clickOnTableOperation('insertcolumnsbefore'); cy.get('.leaflet-marker-icon.table-column-resize-marker') @@ -120,7 +127,7 @@ describe('Table Operation', function() { //assert the number of cells cy.get('g.Page path[fill^="rgb"]') .should(function(cells) { - expect(cells).to.have.lengthOf(9); + expect(cells).to.have.lengthOf(6); }); cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') @@ -130,9 +137,16 @@ describe('Table Operation', function() { .should('have.attr', 'y', '5644'); }); - it.skip('Insert column after.', function() { + it('Insert column after.', function() { selectFullTable(); + helper.typeIntoDocument('{downarrow}'); + + clickOnTableOperation('deleterows'); + + cy.get('.leaflet-marker-icon.table-row-resize-marker') + .should('have.length', 2); + clickOnTableOperation('insertcolumnsafter'); cy.get('.leaflet-marker-icon.table-column-resize-marker') @@ -146,7 +160,7 @@ describe('Table Operation', function() { //assert the number of cells cy.get('g.Page path[fill^="rgb"]') .should(function(cells) { - expect(cells).to.have.lengthOf(9); + expect(cells).to.have.lengthOf(6); }); cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') |