cypress_test/integration_tests/mobile/calc/alignment_options_spec.js | 42 ++++++++++ 1 file changed, 42 insertions(+)
New commits: commit 8a7b9158d32ec4fc4c5a343b981c9af43427b4bc Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Thu Apr 16 14:08:05 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Thu Apr 16 15:28:33 2020 +0200 cypress: mobile: add test for changing text indent via spin field. Change-Id: I5cbd74abcf763312a01280c9099e0e846c8b438f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92360 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js index 812238ec2..b62f8da86 100644 --- a/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js +++ b/cypress_test/integration_tests/mobile/calc/alignment_options_spec.js @@ -202,4 +202,46 @@ describe('Change alignment settings.', function() { }); }); }); + + it('Change text indent via input field.', function() { + getTextPosForFirstCell(); + cy.get('@currentTextPos') + .as('originalTextPos'); + + openAlignmentPaneForFirstCell(); + + // TODO: First we need to increase indent to make the input enabled + cy.get('#IncrementIndent') + .click(); + + cy.wait(300); + + cy.get('#IncrementIndent') + .click(); + + calcHelper.removeTextSelection(); + + openAlignmentPaneForFirstCell(); + + cy.get('#leftindent .spinfield') + .should('not.have.attr', 'disabled'); + + // Increase indent + cy.get('#leftindent .spinfield') + .clear() + .type('20{enter}'); + + // We use the text position as indicator + cy.waitUntil(function() { + getTextPosForFirstCell(); + + return cy.get('@currentTextPos') + .then(function(currentTextPos) { + cy.get('@originalTextPos') + .then(function(originalTextPos) { + return originalTextPos.left < currentTextPos.left; + }); + }); + }); + }); }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits