Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created cypress test for Justify, Toggle numbered list and Toggle bul…
…leted list attribute on Desktop writer

Change-Id: I392a312ac887b294bc63d4502a0f8f4645a05e84
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 3, 2020
1 parent 221c02a commit 9cd86f2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js
Expand Up @@ -159,6 +159,7 @@ describe('Top toolbar tests.', function() {
cy.get('#copy-paste-container p')
.should('have.attr', 'align', 'center');
});

it('Apply right alignment.', function() {
cy.get('#tb_editbar_item_rightpara')
.click();
Expand All @@ -168,6 +169,36 @@ describe('Top toolbar tests.', function() {
cy.get('#copy-paste-container p')
.should('have.attr', 'align', 'right');
});

it('Apply justified.', function() {
cy.get('#tb_editbar_item_justifypara')
.click();

helper.reselectAllText();

cy.get('#copy-paste-container p')
.should('have.attr', 'align', 'justify');
});

it('Toggle numbered list.', function() {
cy.get('#tb_editbar_item_defaultnumbering')
.click();

helper.reselectAllText();

cy.get('#copy-paste-container ol')
.should('exist');
});

it('Toggle bulleted list.', function() {
cy.get('#tb_editbar_item_defaultbullet')
.click();

helper.reselectAllText();

cy.get('#copy-paste-container ul')
.should('exist');
});
it('Insert comment.', function() {
cy.get('#toolbar-up .w2ui-scroll-right')
.click();
Expand Down

0 comments on commit 9cd86f2

Please sign in to comment.