Skip to content

Commit

Permalink
fix layer selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Nov 5, 2024
1 parent 398802a commit ba81f8f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cypress/e2e/layers-selection/layers-selection-catalog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ describe('Catalogue', () => {
const layers = (<AUTWindowOlMap>window).olMap
.getLayers()
.getArray()
.filter((l: any) => l.get('cyLayerType') !== 'featureLayer')
.filter(
(l: any) =>
l.get('cyLayerType')?.replace('Edit', '') !== 'featureLayer'
)
expect(layers[0].get('id')).to.eq(556)
})
cy.get('[data-cy="catalog"]')
Expand All @@ -81,7 +84,10 @@ describe('Catalogue', () => {
const layers = (<AUTWindowOlMap>window).olMap
.getLayers()
.getArray()
.filter((l: any) => l.get('cyLayerType') !== 'featureLayer')
.filter(
(l: any) =>
l.get('cyLayerType')?.replace('Edit', '') !== 'featureLayer'
)
expect(layers[0].get('id')).to.eq(359)
expect(layers[1].get('id')).to.eq(353)
})
Expand Down

0 comments on commit ba81f8f

Please sign in to comment.