cypress_test/integration_tests/desktop/calc/focus_spec.js |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit b958243c567f43587cf4ef316c569dbc2d6b01ed
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Thu Jun 11 20:55:21 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Fri Aug 7 15:27:49 2020 +0200

    cypress: update desktop/calc/focus_spec.js
    
    Clicking on the formulabar is not a reliable way to move
    the cursor to a specific text position.
    
    Change-Id: I9ea48f4591707531a3dfdfb02b18d6fcb08921a6
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96163
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>
    (cherry picked from commit edf1b7d0d1160dc34091bcfecc7bd0c75fc81361)
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100325

diff --git a/cypress_test/integration_tests/desktop/calc/focus_spec.js 
b/cypress_test/integration_tests/desktop/calc/focus_spec.js
index 649d2ceb9..821c612a9 100644
--- a/cypress_test/integration_tests/desktop/calc/focus_spec.js
+++ b/cypress_test/integration_tests/desktop/calc/focus_spec.js
@@ -60,6 +60,12 @@ describe('Calc focus tests', function() {
                calc.clickOnFirstCell();
                calc.clickFormulaBar();
                helper.assertCursorAndFocus();
+
+               // Move cursor before text2
+               cy.get('textarea.clipboard').type('{end}');
+               for (var i = 0; i < 6; i++)
+                       cy.get('textarea.clipboard').type('{leftarrow}');
+
                var text3 = ' BAZINGA';
                helper.typeText('textarea.clipboard', text3);
                // Validate.
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to