2022-06-28 18:07:31 +00:00
|
|
|
const { defineConfig } = require('cypress');
|
2022-09-22 17:40:11 +00:00
|
|
|
|
2022-06-28 18:07:31 +00:00
|
|
|
module.exports = defineConfig({
|
2023-05-17 15:21:10 +00:00
|
|
|
reporter: '../../node_modules/cypress-mochawesome-reporter',
|
2022-06-28 18:07:31 +00:00
|
|
|
|
|
|
|
e2e: {
|
2022-09-22 17:40:11 +00:00
|
|
|
setupNodeEvents(on, config) {
|
2023-05-17 15:21:10 +00:00
|
|
|
require('cypress-mochawesome-reporter/plugin')(on);
|
2022-11-30 12:32:01 +00:00
|
|
|
require('@cypress/grep/src/plugin')(config);
|
2022-09-22 17:40:11 +00:00
|
|
|
return config;
|
|
|
|
},
|
2022-06-28 18:07:31 +00:00
|
|
|
baseUrl: 'http://localhost:4210',
|
|
|
|
fileServerFolder: '.',
|
2022-08-19 13:39:00 +00:00
|
|
|
fixturesFolder: './src/fixtures',
|
2022-09-22 17:40:11 +00:00
|
|
|
specPattern: [
|
|
|
|
'./src/integration/view/**/*.cy.{js,jsx,ts,tsx}',
|
|
|
|
'./src/integration/flow/**/*.cy.{js,jsx,ts,tsx}',
|
|
|
|
],
|
2022-06-28 18:07:31 +00:00
|
|
|
modifyObstructiveCode: false,
|
2022-09-22 17:40:11 +00:00
|
|
|
supportFile: './src/support/index.js',
|
2022-09-22 14:07:18 +00:00
|
|
|
video: false,
|
2022-07-08 12:54:56 +00:00
|
|
|
videoUploadOnPasses: false,
|
2023-03-01 12:35:13 +00:00
|
|
|
videosFolder: '../../dist/cypress/apps/governance-e2e/videos',
|
|
|
|
screenshotsFolder: '../../dist/cypress/apps/governance-e2e/screenshots',
|
2022-06-28 18:07:31 +00:00
|
|
|
chromeWebSecurity: false,
|
2022-07-14 15:49:20 +00:00
|
|
|
viewportWidth: 1440,
|
|
|
|
viewportHeight: 900,
|
2022-09-01 11:25:11 +00:00
|
|
|
numTestsKeptInMemory: 5,
|
2023-05-31 16:10:41 +00:00
|
|
|
downloadsFolder: 'cypress/downloads',
|
2023-04-20 11:56:33 +00:00
|
|
|
testIsolation: false,
|
2022-06-28 18:07:31 +00:00
|
|
|
},
|
2022-07-08 10:48:51 +00:00
|
|
|
env: {
|
|
|
|
ethProviderUrl: 'http://localhost:8545/',
|
|
|
|
ethWalletPublicKey: '0xEe7D375bcB50C26d52E1A4a472D8822A2A22d94F',
|
2022-07-11 13:32:32 +00:00
|
|
|
ethWalletPublicKeyTruncated: '0xEe7D…d94F',
|
2022-07-08 10:48:51 +00:00
|
|
|
ethStakingBridgeContractAddress:
|
|
|
|
'0x9135f5afd6F055e731bca2348429482eE614CFfA',
|
|
|
|
vegaWalletName: 'capsule_wallet',
|
|
|
|
vegaWalletLocation: '~/.vegacapsule/testnet/wallet',
|
|
|
|
vegaWalletPassphrase: '123',
|
|
|
|
vegaWalletMnemonic:
|
|
|
|
'ozone access unlock valid olympic save include omit supply green clown session',
|
|
|
|
vegaWalletPublicKey:
|
|
|
|
'02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65',
|
|
|
|
vegaWalletPublicKeyShort: '02ecea…2f65',
|
2022-10-10 08:22:41 +00:00
|
|
|
vegaWalletPublicKey2:
|
|
|
|
'7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535',
|
|
|
|
vegaWalletPublicKey2Short: '7f9cf0…5535',
|
2022-07-08 10:48:51 +00:00
|
|
|
vegaTokenContractAddress: '0xF41bD86d462D36b997C0bbb4D97a0a3382f205B7',
|
|
|
|
vegaTokenAddress: '0x67175Da1D5e966e40D11c4B2519392B2058373de',
|
2022-08-31 14:31:00 +00:00
|
|
|
txTimeout: { timeout: 70000 },
|
2023-06-26 14:09:44 +00:00
|
|
|
epochTimeout: { timeout: 12000 },
|
2022-08-23 17:27:43 +00:00
|
|
|
blockConfirmations: 3,
|
2022-09-22 17:40:11 +00:00
|
|
|
grepTags: '@regression @smoke @slow',
|
|
|
|
grepFilterSpecs: true,
|
|
|
|
grepOmitFiltered: true,
|
2022-07-08 10:48:51 +00:00
|
|
|
},
|
2022-06-28 18:07:31 +00:00
|
|
|
});
|