libreoffice-online/cypress_test/cypress.config.ts
Neil Guertin 5a9c6a0e37 Cypress: Add cypress-terminal-report printLogsToConsole option
This is already the default behavior. Writing it here just
makes it easier to change.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Iebde47f5b64ae1509e7f37b884ad71fdc067b164
2024-05-09 08:27:42 -04:00

29 lines
831 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: 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, {
printLogsToConsole: 'onFail', // 'always', 'onFail', 'never'
});
plugin(on, config);
},
specPattern: 'integration_tests/**/*_spec.js',
},
});