diff --git a/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts b/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts index 037af5a9..b7dd8669 100644 --- a/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts +++ b/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts @@ -67,7 +67,10 @@ describe('Catalogue', () => { const layers = (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"]') @@ -81,7 +84,10 @@ describe('Catalogue', () => { const layers = (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) })