From 9a9201565c14784b15fec39465ea85d200aedbfe Mon Sep 17 00:00:00 2001 From: Moritz Kirmse Date: Tue, 5 Nov 2024 11:15:39 +0100 Subject: [PATCH] fix layer selection --- .../layers-selection/layers-selection-catalog.cy.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts b/cypress/e2e/layers-selection/layers-selection-catalog.cy.ts index 8db90d5c..759b50b9 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) })