2023-07-08 06:19:49 -05:00
|
|
|
/* -*- typescript-indent-level: 8 -*- */
|
2023-04-25 10:33:38 -05:00
|
|
|
import { defineConfig } from 'cypress';
|
2023-05-03 07:23:15 -05:00
|
|
|
import plugin from './plugins/index.js';
|
2023-07-07 11:01:32 -05:00
|
|
|
import process from 'process';
|
|
|
|
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter';
|
2023-04-25 10:33:38 -05:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-07-08 06:19:49 -05:00
|
|
|
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',
|
|
|
|
},
|
2023-04-25 10:33:38 -05:00
|
|
|
});
|