[Libreoffice-commits] online.git: cypress_test/integration_tests
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 16 13:28:56 UTC 2020
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.zolnai at collabora.com>
AuthorDate: Thu Apr 16 14:08:05 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at 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 <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at 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;
+ });
+ });
+ });
+ });
});
More information about the Libreoffice-commits
mailing list