libreoffice-online/cypress_test/cypress.config.ts

28 lines
758 B
TypeScript
Raw Normal View History

/* -*- typescript-indent-level: 8 -*- */
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: {
baseUrl: 'http://' + process.env.COOLWSD_SERVER + ':' + process.env.FREE_PORT,
setupNodeEvents(on, config) {
installLogsPrinter(on);
plugin(on, config);
},
specPattern: 'integration_tests/**/*_spec.js',
},
});