[Libreoffice-commits] online.git: cypress_test/integration_tests cypress_test/plugins

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 11 19:25:00 UTC 2020


 cypress_test/integration_tests/desktop/calc/focus_spec.js |    6 ++++++
 cypress_test/plugins/blacklists.js                        |    3 ---
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit c0e7b862da688d1f99dd88dc0e6229de9967008b
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Jun 11 20:55:21 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Jun 11 21:24:36 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 <jenkinscollaboraoffice at gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cypress_test/integration_tests/desktop/calc/focus_spec.js b/cypress_test/integration_tests/desktop/calc/focus_spec.js
index 0c1da24c5..7e27890b7 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() {
 		calcHelper.clickOnFirstCell();
 		calcHelper.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.
diff --git a/cypress_test/plugins/blacklists.js b/cypress_test/plugins/blacklists.js
index 00f8175f5..afbda2c26 100644
--- a/cypress_test/plugins/blacklists.js
+++ b/cypress_test/plugins/blacklists.js
@@ -44,9 +44,6 @@ var testBlackLists = {
 	],
 
 	'cp-6-4': [
-		['desktop/calc/focus_spec.js',
-			[]
-		],
 		['mobile/calc/apply_font_spec.js',
 			[
 				'Apply font size.'


More information about the Libreoffice-commits mailing list