summaryrefslogtreecommitdiffstats
path: root/cypress_test
diff options
context:
space:
mode:
authorEzinne Nnamani <nnamani.ezinne@collabora.com>2020-11-17 11:38:55 +0100
committerTamás Zolnai <zolnaitamas2000@gmail.com>2020-11-17 12:14:11 +0100
commite350557c944c6edb1e700869af1b6b7a55a8ae91 (patch)
treea141205f8744271946bdb159c61c7e8c9b7b11b4 /cypress_test
parentReplace all `__linux` in CPP conditions with `__linux__`. (diff)
downloadonline-e350557c944c6edb1e700869af1b6b7a55a8ae91.tar.gz
online-e350557c944c6edb1e700869af1b6b7a55a8ae91.zip
Created a cypress test for Apply top and bottom border and Apply border for all sides in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com> Change-Id: Ic24f19c298cd2577f18c961b6a0a596034756445
Diffstat (limited to 'cypress_test')
-rw-r--r--cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js28
1 files changed, 27 insertions, 1 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 e3d62153bc..ac527c19cf 100644
--- a/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js
@@ -15,7 +15,7 @@ describe('Top toolbar tests.', function() {
afterEach(function() {
helper.afterAll(testFileName, this.currentTest.state);
});
-
+
it('Remove cell border', function() {
cy.get('#tb_editbar_item_setborderstyle')
.click();
@@ -107,6 +107,32 @@ describe('Top toolbar tests.', function() {
.should('have.attr', 'style', 'border-bottom: 1px solid #000000');
});
+ it('Apply top and bottom border', function() {
+ cy.get('#tb_editbar_item_setborderstyle')
+ .click();
+
+ cy.get('.w2ui-tb-image.w2ui-icon.frame07')
+ .click();
+
+ calcHelper.selectAllMobile();
+
+ cy.get('#copy-paste-container table td')
+ .should('have.attr', 'style', 'border-top: 1px solid #000000; border-bottom: 1px solid #000000');
+ });
+
+ it('Apply border for all sides', function() {
+ cy.get('#tb_editbar_item_setborderstyle')
+ .click();
+
+ cy.get('.w2ui-tb-image.w2ui-icon.frame08')
+ .click();
+
+ calcHelper.selectAllMobile();
+
+ cy.get('#copy-paste-container table td')
+ .should('have.attr', 'style', 'border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000');
+ });
+
it('Clear Direct formatting.', function() {
cy.get('#tb_editbar_item_bold')
.click();