summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-04-07 17:48:50 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-04-07 18:06:11 +0200
commit35290a048748ff8e5d7ec64e9064df2392ae23f5 (patch)
tree779e2d81826f61d27dcfceabf344544bf4f126c3
parentIn the iOS app we have the branding files in the Branding folder (diff)
downloadonline-35290a048748ff8e5d7ec64e9064df2392ae23f5.tar.gz
online-35290a048748ff8e5d7ec64e9064df2392ae23f5.zip
cypress: mobile: improve logging related to calc spellchecking test.
Change-Id: I8a57e9d90eff157f22d0cb37a59a4059ac862fd7 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91839 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--cypress_test/integration_tests/common/mobile_helper.js2
-rw-r--r--cypress_test/integration_tests/mobile/calc/calc_helper.js4
-rw-r--r--cypress_test/integration_tests/mobile/calc/spellchecking_spec.js3
3 files changed, 6 insertions, 3 deletions
diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js
index 3f9b4aa723..53eac5d6de 100644
--- a/cypress_test/integration_tests/common/mobile_helper.js
+++ b/cypress_test/integration_tests/common/mobile_helper.js
@@ -67,7 +67,7 @@ function detectLOCoreVersion() {
function longPressOnDocument(posX, posY) {
cy.log('Emulating a long press - start.');
cy.log('Param - posX: ' + posX);
- cy.log('Param - posX: ' + posY);
+ cy.log('Param - posY: ' + posY);
cy.get('.leaflet-pane.leaflet-map-pane')
.then(function(items) {
diff --git a/cypress_test/integration_tests/mobile/calc/calc_helper.js b/cypress_test/integration_tests/mobile/calc/calc_helper.js
index d3530f48ce..12e20b6e05 100644
--- a/cypress_test/integration_tests/mobile/calc/calc_helper.js
+++ b/cypress_test/integration_tests/mobile/calc/calc_helper.js
@@ -72,7 +72,7 @@ function copyContentToClipboard() {
}
function removeTextSelection() {
- cy.log('Removing all text - start.');
+ cy.log('Removing text selection - start.');
// TODO: select all does not work with core/master
// if we have a column selected
@@ -90,7 +90,7 @@ function removeTextSelection() {
.should('exist');
}
- cy.log('Removing all text - end.');
+ cy.log('Removing text selection - end.');
}
function selectAllMobile() {
diff --git a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js
index 379221e584..70a91270f1 100644
--- a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js
+++ b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js
@@ -29,10 +29,13 @@ describe('Calc spell checking menu.', function() {
cy.get('.leaflet-marker-icon')
.then(function(markers) {
expect(markers.length).to.have.greaterThan(1);
+ cy.log('Markers length: ' + markers.length);
for (var i = 0; i < markers.length; i++) {
if (markers[i].classList.contains('leaflet-selection-marker-start')) {
+ cy.log('Found start marker at pos: ' + markers[i].getBoundingClientRect().right);
var XPos = markers[i].getBoundingClientRect().right + 10;
} else if (markers[i].classList.contains('leaflet-selection-marker-end')) {
+ cy.log('Found end marker at pos: ' + markers[i].getBoundingClientRect().top);
var YPos = markers[i].getBoundingClientRect().top - 10;
}
}