36a58aa7ef
Also remove SCREENSHOT_FOLDER environment variable, this information is available from Cypress.config(), and if it needs to change it should be set there. Signed-off-by: Neil Guertin <neil.guertin@collabora.com> Change-Id: Idbfb627fa818a6864da355a990dbac2589f8df37
29 lines
830 B
TypeScript
29 lines
830 B
TypeScript
/* -*- 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: true,
|
|
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, {
|
|
printLogsToConsole: 'onFail', // 'always', 'onFail', 'never'
|
|
});
|
|
plugin(on, config);
|
|
},
|
|
specPattern: 'integration_tests/**/*_spec.js',
|
|
},
|
|
});
|