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>
This commit is contained in:
parent
ab44bfaf5f
commit
35290a0487
3 changed files with 6 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue