Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created a cypress test for Italic, Strikethrough and Underline attrib…
…utes in top toolbar of Calc Desktop

Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I1f782710a8728c39d3a40dfb56b6af4d9809947c
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 10, 2020
1 parent 59e8c35 commit cb35596
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js
Expand Up @@ -26,6 +26,36 @@ describe('Top toolbar tests.', function() {
.should('exist');
});

it('Apply underline.', function() {
cy.get('#tb_editbar_item_underline')
.click();

calcHelper.selectAllMobile();

cy.get('#copy-paste-container table td u')
.should('exist');
});

it('Apply italic.', function() {
cy.get('#tb_editbar_item_italic')
.click();

calcHelper.selectAllMobile();

cy.get('#copy-paste-container table td i')
.should('exist');
});

it('Apply strikethrough.', function() {
cy.get('#tb_editbar_item_strikeout')
.click();

calcHelper.selectAllMobile();

cy.get('#copy-paste-container table td s')
.should('exist');
});

it('Apply left/right alignment', function() {
// Set right aligment first
cy.get('#tb_editbar_item_textalign .w2ui-tb-down')
Expand Down

0 comments on commit cb35596

Please sign in to comment.