forked from okta/okta-developer-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
27 lines (26 loc) · 810 Bytes
/
cypress.config.js
File metadata and controls
27 lines (26 loc) · 810 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
const { defineConfig } = require('cypress')
module.exports = defineConfig({
screenshotsFolder: 'tests/cypress/screenshots',
videosFolder: 'tests/cypress/videos',
fixturesFolder: 'tests/cypress/fixtures',
chromeWebSecurity: false,
scrollBehavior: 'center',
video: false,
retries: {
runMode: 2,
openMode: 0,
},
pageLoadTimeout: 10000,
viewportWidth: 1280,
viewportHeight: 1024,
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('./tests/cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:8080/',
specPattern: 'tests/cypress/integration/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'tests/cypress/support/index.js',
},
})