[Libreoffice-commits] online.git: cypress_test/integration_tests
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 21 14:50:06 UTC 2020
cypress_test/integration_tests/common/helper.js | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
New commits:
commit 5acffe2af9dc808fb2d38b4a4b4891e264f09e59
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Mon May 18 10:53:49 2020 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Thu May 21 16:49:48 2020 +0200
cypress: remove logging UNO command states
This is no longer usable when running interactive unit test
Change-Id: I0e44dca7d6c0ec513da08a0d4521ef9d15b27a94
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94430
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro at collabora.com>
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js
index b2053c4a7..39fc09875 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -1,9 +1,5 @@
/* global cy Cypress*/
-function onCommandStateChanged(e) {
- Cypress.log({ displayName: 'onCommandState', message: e.commandName + '=' + JSON.stringify(e.state)});
-}
-
function loadTestDoc(fileName, subFolder, mobile) {
cy.log('Loading test document - start.');
cy.log('Param - fileName: ' + fileName);
@@ -51,11 +47,8 @@ function loadTestDoc(fileName, subFolder, mobile) {
cy.visit(URI, {
onLoad: function(win) {
win.onerror = cy.onUncaughtException;
- }})
- .then(function(win) {
- var map = win.L.Map.THIS;
- map.on('commandstatechanged', onCommandStateChanged);
- });
+ }});
+
// Wait for the document to fully load
cy.get('.leaflet-tile-loaded', {timeout : 10000});
More information about the Libreoffice-commits
mailing list