diff --git a/cypress/e2e/background-selection.cy.ts b/cypress/e2e/background-selection.cy.ts index 945f1838..c0e640d4 100644 --- a/cypress/e2e/background-selection.cy.ts +++ b/cypress/e2e/background-selection.cy.ts @@ -22,7 +22,10 @@ describe('Background selector', () => { 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) }) @@ -52,7 +55,10 @@ describe('Background selector', () => { 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(502) }) }) diff --git a/package.json b/package.json index 8031d1aa..b277789b 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "test:unit": "vitest --environment jsdom --root .", "test:unit:ci": "vitest run --environment jsdom --coverage", "test:e2e": "INSTRUMENT_COVERAGE=true start-server-and-test preview :4173 'cypress open --e2e'", - "test:e2e:ci": "INSTRUMENT_COVERAGE=true start-server-and-test 'VITE_USE_PROXYURL=false vite dev --port 4173' :4173 'cypress run --browser chrome --e2e'", - "test:e2e:dev": "INSTRUMENT_COVERAGE=true start-server-and-test 'vite dev --port 4173' :4173 'cypress open --browser chrome --e2e'", + "test:e2e:ci": "INSTRUMENT_COVERAGE=true start-server-and-test 'VITE_USE_PROXYURL=false vite dev --port 4173' :4173 'cypress run --browser chromium --e2e'", + "test:e2e:dev": "INSTRUMENT_COVERAGE=true start-server-and-test 'vite dev --port 4173' :4173 'cypress open --browser chromium --e2e'", "coverage-report": "nyc report", "type-check:dev": "npm run type-check -- --watch", "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",