mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 14:43:46 -05:00
8eb8b233c0
[server-ce] e2e tests: add capability for reconfiguring the instance GitOrigin-RevId: 44ec800b5b37497b3122310a94f637c24ff2667a
24 lines
608 B
JavaScript
24 lines
608 B
JavaScript
const { defineConfig } = require('cypress')
|
|
|
|
const specPattern = process.env.SPEC_PATTERN || './**/*.spec.{js,ts,tsx}'
|
|
|
|
module.exports = defineConfig({
|
|
defaultCommandTimeout: 10_000,
|
|
fixturesFolder: 'cypress/fixtures',
|
|
video: process.env.CYPRESS_VIDEO === 'true',
|
|
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,
|
|
},
|
|
})
|