2023-03-27 19:48:02 +03:00
|
|
|
import codeCoverageTask from '@cypress/code-coverage/task'
|
2022-06-14 00:43:58 +03:00
|
|
|
import { defineConfig } from 'cypress'
|
|
|
|
|
|
|
|
export default defineConfig({
|
2022-06-16 17:08:25 +03:00
|
|
|
projectId: 'yp82ef',
|
2022-06-16 16:17:48 +03:00
|
|
|
videoUploadOnPasses: false,
|
2022-12-15 17:29:47 +03:00
|
|
|
defaultCommandTimeout: 24000, // 2x average block time
|
2022-06-14 00:43:58 +03:00
|
|
|
chromeWebSecurity: false,
|
2023-04-06 19:30:07 +03:00
|
|
|
retries: { runMode: 2 },
|
2022-06-14 00:43:58 +03:00
|
|
|
e2e: {
|
2022-06-14 22:40:52 +03:00
|
|
|
setupNodeEvents(on, config) {
|
2023-03-27 19:48:02 +03:00
|
|
|
codeCoverageTask(on, config)
|
2022-06-14 22:40:52 +03:00
|
|
|
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-14 00:43:58 +03:00
|
|
|
baseUrl: 'http://localhost:3000',
|
|
|
|
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
|
|
|
},
|
|
|
|
})
|