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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 14 19:33:58 UTC 2020


 cypress_test/integration_tests/mobile/impress/impress_mobile_helper.js |   16 ++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit 8d3209dd1e49edbc1c0d6551347dd1a461d510b7
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Aug 14 16:33:34 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Aug 14 21:33:39 2020 +0200

    cypress: add log lines to impress helper methods.
    
    Change-Id: I64289fa556e12142400bca07ff9d45f2b2df72cd
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100757
    Tested-by: Jenkins
    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/impress/impress_mobile_helper.js b/cypress_test/integration_tests/mobile/impress/impress_mobile_helper.js
index 6341caa96..62202bc4e 100644
--- a/cypress_test/integration_tests/mobile/impress/impress_mobile_helper.js
+++ b/cypress_test/integration_tests/mobile/impress/impress_mobile_helper.js
@@ -3,6 +3,8 @@
 var helper = require('../../common/helper');
 
 function selectTextShapeInTheCenter() {
+	cy.log('Selecting text shape - start.');
+
 	// Click on the center of the slide to select the text shape there
 	cy.get('#document-container')
 		.then(function(items) {
@@ -21,9 +23,13 @@ function selectTextShapeInTheCenter() {
 			expect(shape.hasClass('com.sun.star.drawing.TextShape') ||
 				   shape.hasClass('Outline')).to.be.true;
 		});
+
+	cy.log('Selecting text shape - end.');
 }
 
 function selectTextOfShape() {
+	cy.log('Selecting text of shape - start.');
+
 	// Double click onto the selected shape
 	cy.waitUntil(function() {
 		cy.get('svg g .leaflet-interactive')
@@ -47,9 +53,13 @@ function selectTextOfShape() {
 		.should('exist');
 
 	helper.selectAllText(false);
+
+	cy.log('Selecting text of shape - end.');
 }
 
 function removeShapeSelection() {
+	cy.log('Removing shape selection - start.');
+
 	// Remove selection with on the top-left corner of the slide
 	cy.waitUntil(function() {
 		cy.get('.leaflet-tile')
@@ -70,9 +80,13 @@ function removeShapeSelection() {
 
 	cy.get('.leaflet-drag-transform-marker')
 		.should('not.exist');
+
+	cy.log('Removing shape selection - end.');
 }
 
 function triggerNewSVGForShapeInTheCenter() {
+	cy.log('Triggering new SVG for shape - start.');
+
 	removeShapeSelection();
 
 	// If we click too fast on the shape again
@@ -81,6 +95,8 @@ function triggerNewSVGForShapeInTheCenter() {
 
 	// Select text shape again which will retrigger a new SVG from core
 	selectTextShapeInTheCenter();
+
+	cy.log('Triggering new SVG for shape - end.');
 }
 
 module.exports.selectTextShapeInTheCenter = selectTextShapeInTheCenter;


More information about the Libreoffice-commits mailing list