collabora-online/cypress_test/cypress.config.ts

26 lines
663 B
TypeScript

import { defineConfig } from 'cypress';
import plugin from './plugins/index.js';
import process from 'process';
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter';
export default defineConfig({
video: false,
defaultCommandTimeout: 10000,
modifyObstructiveCode: false,
fixturesFolder: 'data',
chromeWebSecurity: false,
screenshotOnRunFailure: false,
env: { USER_INTERFACE: process.env.USER_INTERFACE },
retries: {
runMode: 1,
openMode: 0,
},
e2e: {
setupNodeEvents(on, config) {
installLogsPrinter(on);
plugin(on, config);
},
specPattern: 'integration_tests/**/*_spec.js',
},
});