mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 00:43:41 -05:00
24 lines
555 B
JavaScript
24 lines
555 B
JavaScript
|
const { defineConfig } = require('cypress')
|
||
|
|
||
|
const specPattern = process.env.SPEC_PATTERN || './**/*.spec.{js,ts,tsx}'
|
||
|
|
||
|
module.exports = defineConfig({
|
||
|
fixturesFolder: 'cypress/fixtures',
|
||
|
video: !!process.env.CI,
|
||
|
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,
|
||
|
},
|
||
|
})
|