Skip to content

Commit

Permalink
PB-1128: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerfe authored and pakb committed Nov 26, 2024
1 parent a654fc0 commit 64cf53f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/cypress/tests-e2e/layers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1368,4 +1368,20 @@ describe('Test of layer handling', () => {
cy.wait('@geojson-data', { timeout: 5000 })
})
})
context('Custom url attributes', () => {
it('Keep custom attributes when changing language', () => {
cy.goToMapView({
lang: 'fr',
})
cy.wait(['@routeChange', '@layers', '@topics', '@topic-ech'])
cy.goToMapView({
lang: 'en',
bgLayer: 'ch.swisstopo.pixelkarte-farbe',
topic: 'ech',
layers: 'WMS|https://wms.geo.admin.ch/?item=2024-10-30t103151|test.background.layer@item=2024-10-30t103151',
})
cy.wait(['@routeChange', '@layers', '@topics', '@topic-ech'])
cy.url().should('contain', 'item=2024-10-30t103151')
})
})
})

0 comments on commit 64cf53f

Please sign in to comment.