Created the cypress test for Increase Indent and Decrease Indent attributes in Desktop Writer

Change-Id: Ia374c80d3574b44792381af201dafcfc5b275bff
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
pull/478/head
Ezinne Nnamani 2020-11-04 07:00:50 +01:00 committed by Tamás Zolnai
parent db10f7f81e
commit bb30f7c346
1 changed files with 25 additions and 1 deletions

View File

@ -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();
@ -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();