Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created the cypress test for Increase Indent and Decrease Indent attr…
…ibutes in Desktop Writer

Change-Id: Ia374c80d3574b44792381af201dafcfc5b275bff
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 4, 2020
1 parent db10f7f commit bb30f7c
Showing 1 changed file with 25 additions and 1 deletion.
Expand Up @@ -159,7 +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 Down Expand Up @@ -199,6 +199,30 @@ describe('Top toolbar tests.', function() {
cy.get('#copy-paste-container ul')
.should('exist');
});
it('Increase/Decrease Indent.', function() {
cy.get('#toolbar-up .w2ui-scroll-right')
.click();

//Increase indent
cy.get('#tb_editbar_item_incrementindent')
.click();

helper.reselectAllText();

cy.get('#copy-paste-container p')
.should('have.attr', 'style', 'margin-left: 0.49in; margin-bottom: 0in; font-style: normal; font-weight: normal; line-height: 100%');

//Decrease indent
cy.get('#tb_editbar_item_decrementindent')
.click();

helper.reselectAllText();


cy.get('#copy-paste-container p')
.should('have.attr', 'style', 'margin-bottom: 0in; font-style: normal; font-weight: normal; line-height: 100%');
});

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

0 comments on commit bb30f7c

Please sign in to comment.