Skip to content

Commit

Permalink
Created a cypress test for Clear direct formatting
Browse files Browse the repository at this point in the history
Change-Id: I54ebe7fb81ca6598ba45f3cbed62474d103d055a
  • Loading branch information
Ezinnem authored and tzolnai committed Oct 23, 2020
1 parent d6dfd80 commit a3b7a7c
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Top toolbar tests.', function() {
afterEach(function() {
helper.afterAll(testFileName);
});

it('Apply bold font.', function() {
cy.get('#tb_editbar_item_bold')
.click();
Expand Down Expand Up @@ -65,6 +65,24 @@ describe('Top toolbar tests.', function() {
.should('have.attr', 'style', 'font-size: 72pt');
});

it('Clear direct formatting', function() {
cy.get('#tb_editbar_item_bold')
.click();

helper.selectAllText(false);

cy.get('#copy-paste-container p b')
.should('exist');

helper.selectAllText(false);

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

cy.get('#copy-paste-container p b')
.should('not.exist');
});

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

0 comments on commit a3b7a7c

Please sign in to comment.