Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Nov 5, 2024
1 parent c7101a8 commit 46d066f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions cypress/e2e/background-selection.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ describe('Background selector', () => {
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)
})

Expand Down Expand Up @@ -52,7 +55,10 @@ describe('Background selector', () => {
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(502)
})
})
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 46d066f

Please sign in to comment.