diff options
author | Ezinne Nnamani <nnamani.ezinne@collabora.com> | 2020-11-16 10:05:24 +0100 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-11-25 01:37:08 +0100 |
commit | d7f5e57a73b63ff8d72697b5a94bbddaaa347359 (patch) | |
tree | 8c69cc2c26e43c53a92bd8cca740ad9282c0e776 | |
parent | cypress: skip afterAll() in case of failure for NC only. (diff) | |
download | online-d7f5e57a73b63ff8d72697b5a94bbddaaa347359.tar.gz online-d7f5e57a73b63ff8d72697b5a94bbddaaa347359.zip |
Created a cypress test for Remove border cell, Right border cell and Left border cell in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I967dee45e2956f40a8645e9578a3b7c40a8a4d58
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
(cherry picked from commit fc851c6cf83d7bb3e4ce34ddcbea1444159e870d)
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js index 706e62bbb0..98a66c5a87 100644 --- a/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js @@ -16,6 +16,58 @@ describe('Top toolbar tests.', function() { helper.afterAll(testFileName, this.currentTest.state); }); + it('Remove cell border', function() { + cy.get('#tb_editbar_item_setborderstyle') + .click(); + + //Add left border + cy.get('.w2ui-tb-image.w2ui-icon.frame02') + .click({force: true}); + + calcHelper.selectAllMobile(); + + cy.get('#copy-paste-container table td') + .should('have.attr', 'style', 'border-left: 1px solid #000000'); + + // Then remove it + cy.get('#tb_editbar_item_setborderstyle') + .click(); + + cy.get('.w2ui-tb-image.w2ui-icon.frame01') + .click({force: true}); + + calcHelper.selectAllMobile(); + + cy.get('#copy-paste-container table td') + .should('not.have.attr', 'style'); + }); + + it('Apply right border', function() { + cy.get('#tb_editbar_item_setborderstyle') + .click(); + + cy.get('.w2ui-tb-image.w2ui-icon.frame03') + .click({force: true}); + + calcHelper.selectAllMobile(); + + cy.get('#copy-paste-container table td') + .should('have.attr', 'style', 'border-right: 1px solid #000000'); + }); + + it('Apply left border', function() { + cy.get('#tb_editbar_item_setborderstyle') + .click(); + + cy.get('.w2ui-tb-image.w2ui-icon.frame02') + .click({force: true}); + + calcHelper.selectAllMobile(); + + cy.get('#copy-paste-container table td') + .should('have.attr', 'style', 'border-left: 1px solid #000000'); + }); + it('Clear Direct formatting.', function() { cy.get('#tb_editbar_item_bold') .click(); |