forked from cowprotocol/cowswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
37 lines (34 loc) · 1.07 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as dotenv from 'dotenv'
import fs from 'fs'
import { defineConfig } from 'cypress'
let env = {}
if (!process.env.GITHUB_ENV) {
try {
const localEnvFile = fs.readFileSync('./.env.local')
env = dotenv.parse(localEnvFile)
} catch (err) {
throw new Error('Could not read .env.local file: are you sure you have your local env vars set?')
}
}
export default defineConfig({
projectId: 'yp82ef',
defaultCommandTimeout: 20000,
pageLoadTimeout: 120000,
screenshotsFolder: 'cypress-custom/screenshots',
videosFolder: 'cypress-custom/videos',
downloadsFolder: 'cypress-custom/downloads',
video: false,
fixturesFolder: false,
chromeWebSecurity: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:3000',
specPattern: 'cypress-custom/integration/**/*.{js,jsx,ts,tsx}',
supportFile: 'cypress-custom/support/index.js',
env,
},
})