Skip to content

Commit

Permalink
PB-995: CI complains TESTSITE ribbon is over menu
Browse files Browse the repository at this point in the history
forcing clicks to counter that (works fine without force locally...)
  • Loading branch information
pakb committed Nov 6, 2024
1 parent 536f909 commit c256505
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cypress/tests-e2e/3d/layers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)
Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit c256505

Please sign in to comment.