-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathcypress.config.js
More file actions
41 lines (40 loc) · 968 Bytes
/
cypress.config.js
File metadata and controls
41 lines (40 loc) · 968 Bytes
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
38
39
40
41
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from 'cypress'
export default defineConfig({
viewportWidth: 1920,
viewportHeight: 1080,
defaultCommandTimeout: 10000,
requestTimeout: 10000,
pageLoadTimeout: 80000,
taskTimeout: 300000,
projectId: process.env.CYPRESS_PROJECT_ID,
video: false,
watchForFileChanges: true,
chromeWebSecurity: false,
retries: {
runMode: 2,
openMode: 2,
},
// reporter: 'mochawesome',
// reporterOptions: {
// reportDir: 'cypress/reports',
// overwrite: false,
// html: true,
// json: true,
// },
e2e: {
setupNodeEvents() {},
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
baseUrl: process.env.CYPRESS_LMS_BASE_URL,
},
blockHosts: [
'**.cdn.**',
'cdn.*',
'*.optimizely.**',
'www.googletagmanager.com',
'www.google-analytics.com',
'*.qualaroo.**',
's3.amazonaws.com',
'*.nr-data.net**',
],
})