2022-06-13 17:43:58 -04:00
|
|
|
import { defineConfig } from 'cypress'
|
|
|
|
|
|
|
|
export default defineConfig({
|
2022-06-16 10:08:25 -04:00
|
|
|
projectId: 'yp82ef',
|
2022-06-16 09:17:48 -04:00
|
|
|
videoUploadOnPasses: false,
|
2022-06-13 17:43:58 -04:00
|
|
|
defaultCommandTimeout: 10000,
|
|
|
|
chromeWebSecurity: false,
|
|
|
|
e2e: {
|
2022-06-14 15:40:52 -04:00
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
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'),
|
|
|
|
}
|
|
|
|
},
|
2022-06-13 17:43:58 -04:00
|
|
|
baseUrl: 'http://localhost:3000',
|
|
|
|
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
|
|
|
},
|
|
|
|
})
|