diff --git a/tests/cypress/tests-e2e/3d/layers.cy.js b/tests/cypress/tests-e2e/3d/layers.cy.js index 3c71d71134..ebda84b606 100644 --- a/tests/cypress/tests-e2e/3d/layers.cy.js +++ b/tests/cypress/tests-e2e/3d/layers.cy.js @@ -104,7 +104,7 @@ describe('Test of layer handling in 3D', () => { cy.openLayerSettings(firstLayerId) cy.get(`[data-cy^="button-raise-order-layer-${firstLayerId}-"]`) .should('be.visible') - .click() + .click({ force: true }) // checking that the order has changed cy.readWindowValue('cesiumViewer').then((viewer) => { expect(viewer.scene.imageryLayers.get(1).imageryProvider.url).to.have.string( @@ -115,7 +115,7 @@ describe('Test of layer handling in 3D', () => { // using the other button cy.get(`[data-cy^="button-lower-order-layer-${firstLayerId}-"]`) .should('be.visible') - .click() + .click({ force: true }) // re-checking the order that should be back to the starting values cy.readWindowValue('cesiumViewer').then((viewer) => { expect(viewer.scene.imageryLayers.get(1).imageryProvider.layers).to.eq(firstLayerId) @@ -164,7 +164,7 @@ describe('Test of layer handling in 3D', () => { cy.openMenuIfMobile() cy.get(`[data-cy^="button-remove-layer-${visibleLayerIds[3]}-"]`) .should('be.visible') - .click() + .click({ force: true }) cy.readWindowValue('cesiumViewer').then((viewer) => { expect(viewer.scene.primitives.length).to.eq(3) // labels, constructions and buildings are still present })