test(e2e): use electron (#6827)

* test(e2e): use electron

* build: use default container for cypress-test-matrix
This commit is contained in:
Zach Pomerantz 2023-07-05 16:30:54 -04:00 committed by GitHub
parent 82211a888c
commit b49dd03e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

@ -108,7 +108,6 @@ jobs:
cypress-test-matrix:
needs: [build-e2e, cypress-rerun]
runs-on: ubuntu-latest
container: cypress/browsers:node-18.14.1-chrome-111.0.5563.64-1-ff-111.0-edge-111.0.1661.43-1
strategy:
fail-fast: false
matrix:
@ -142,7 +141,7 @@ jobs:
parallel: true
start: yarn serve
wait-on: 'http://localhost:3000'
browser: chrome
browser: electron
group: e2e
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

@ -25,12 +25,7 @@ export default defineConfig({
}
})
return {
...config,
// Only enable Chrome.
// Electron (the default) has issues injecting window.ethereum before pageload, so it is not viable.
browsers: config.browsers.filter(({ name }) => name === 'chrome'),
}
return config
},
baseUrl: 'http://localhost:3000',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',