diff --git a/cypress_test/integration_tests/common/desktop_helper.js b/cypress_test/integration_tests/common/desktop_helper.js index b54f4a499..f1fd546f9 100644 --- a/cypress_test/integration_tests/common/desktop_helper.js +++ b/cypress_test/integration_tests/common/desktop_helper.js @@ -1,6 +1,6 @@ /* global cy require Cypress expect */ -const { clickOnIdle, typeIntoDocument, waitUntilIdle } = require('./helper'); +var helper = require('./helper'); // Make the sidebar visible by clicking on the corresponding toolbar item. // We assume that the sidebar is hidden, when this method is called. @@ -213,7 +213,7 @@ function zoomOut() { function selectZoomLevel(zoomLevel) { makeZoomItemsVisible(); - clickOnIdle('#tb_actionbar_item_zoom'); + helper.clickOnIdle('#tb_actionbar_item_zoom'); cy.contains('.w2ui-drop-menu .menu-text', zoomLevel) .click(); @@ -256,9 +256,9 @@ function insertImage(docType) { } function deleteImage() { - typeIntoDocument('{del}'); + helper.typeIntoDocument('{del}'); - waitUntilIdle('.leaflet-pane.leaflet-overlay-pane'); + helper.waitUntilIdle('.leaflet-pane.leaflet-overlay-pane'); cy.get('.leaflet-pane.leaflet-overlay-pane svg g') .should('not.exist'); @@ -358,11 +358,26 @@ function assertScrollbarPosition(type, lowerBound, upperBound) { function pressKey(n, key) { for (let i=0; i