2023-11-23 05:40:13 -05:00
|
|
|
const { defineConfig } = require('cypress')
|
|
|
|
|
|
|
|
const specPattern = process.env.SPEC_PATTERN || './**/*.spec.{js,ts,tsx}'
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
2024-05-30 03:12:56 -04:00
|
|
|
defaultCommandTimeout: 10_000,
|
2023-11-23 05:40:13 -05:00
|
|
|
fixturesFolder: 'cypress/fixtures',
|
2024-05-30 03:12:56 -04:00
|
|
|
video: process.env.CYPRESS_VIDEO === 'true',
|
2023-11-23 05:40:13 -05:00
|
|
|
screenshotsFolder: 'cypress/results',
|
|
|
|
videosFolder: 'cypress/results',
|
|
|
|
videoUploadOnPasses: false,
|
|
|
|
viewportHeight: 768,
|
|
|
|
viewportWidth: 1024,
|
|
|
|
e2e: {
|
|
|
|
baseUrl: 'http://localhost',
|
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
// implement node event listeners here
|
|
|
|
},
|
|
|
|
specPattern,
|
|
|
|
},
|
|
|
|
retries: {
|
|
|
|
runMode: 1,
|
|
|
|
},
|
|
|
|
})
|