Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created a Cypress test for Add Decimal places and Delete decimal plac…
…es in Desktop Calc

Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I3420488c79af469cbcc5181106e4ec864f40893d
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 12, 2020
1 parent 4c915f5 commit f0f3304
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cypress_test/integration_tests/desktop/calc/top_toolbar_spec.js
Expand Up @@ -98,6 +98,7 @@ describe('Top toolbar tests.', function() {
cy.get('#copy-paste-container table td s')
.should('exist');
});

it('Apply highlight color.', function() {
cy.get('#tb_editbar_item_backgroundcolor')
.click();
Expand All @@ -123,6 +124,28 @@ describe('Top toolbar tests.', function() {
.should('have.attr', 'color', '#FFF2CC');
});

it('Add/Delete decimal places', function() {
// Add decimal place
cy.get('#tb_editbar_item_numberformatincdecimals')
.click();

calcHelper.selectAllMobile();

cy.get('#copy-paste-container table td')
.should('have.attr', 'sdnum', '1033;0;0.0');

// Delete Decimal place
calcHelper.clickOnFirstCell();

cy.get('#tb_editbar_item_numberformatdecdecimals')
.click();

calcHelper.selectAllMobile();

cy.get('#copy-paste-container table td')
.should('have.attr', 'sdnum', '1033;0;0');
});

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 f0f3304

Please sign in to comment.