overleaf/server-ce/test/cypress.config.js
Mathias Jakobsen 732cbf0c26 Merge pull request #15547 from overleaf/mj-community-edition-tests
[server-ce] Add e2e test for CE

GitOrigin-RevId: f76ee4d19680c57a3a0854bc89175b3fb352ca41
2023-11-24 09:04:18 +00:00

23 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,
},
})