Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created cypress test for center align attribute on Desktop writer
Change-Id: I81e9765f7c2aa6811ec6ae4f15d37c9ba3d7532c
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 2, 2020
1 parent 65d67c7 commit 335b00d
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -14,7 +14,7 @@ describe('Top toolbar tests.', function() {
afterEach(function() {
helper.afterAll(testFileName);
});

it('Apply highlight color.', function() {
cy.get('#tb_editbar_item_backcolor')
.click();
Expand Down Expand Up @@ -150,6 +150,16 @@ describe('Top toolbar tests.', function() {
.should('have.attr', 'align', 'left');
});

it('Apply center alignment.', function() {
cy.get('#tb_editbar_item_centerpara')
.click();

helper.reselectAllText();

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

it('Insert comment.', function() {
cy.get('#toolbar-up .w2ui-scroll-right')
.click();
Expand Down

0 comments on commit 335b00d

Please sign in to comment.