2023-11-23 05:40:13 -05:00
|
|
|
const { defineConfig } = require('cypress')
|
2024-06-13 11:56:47 -04:00
|
|
|
const { readPdf, readFileInZip } = require('./helpers/read-file')
|
2023-11-23 05:40:13 -05:00
|
|
|
|
|
|
|
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) {
|
2024-06-13 11:56:47 -04:00
|
|
|
on('task', {
|
|
|
|
readPdf,
|
|
|
|
readFileInZip,
|
|
|
|
})
|
2023-11-23 05:40:13 -05:00
|
|
|
},
|
|
|
|
specPattern,
|
|
|
|
},
|
|
|
|
retries: {
|
|
|
|
runMode: 1,
|
|
|
|
},
|
|
|
|
})
|