overleaf/server-ce/test/cypress.config.js
Miguel Serrano 0cfc64786d [CE/SP] Add e2e tests for project list (#18475)
* [CE/SP] Add e2e tests for project list

GitOrigin-RevId: 0368d74b47c79f74b3520177d8bb697013d851d4
2024-06-14 08:05:21 +00:00

28 lines
697 B
JavaScript

const { defineConfig } = require('cypress')
const { readPdf, readFileInZip } = require('./helpers/read-file')
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) {
on('task', {
readPdf,
readFileInZip,
})
},
specPattern,
},
retries: {
runMode: 1,
},
})