forked from CollaboraOnline/online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
36 lines (35 loc) · 1.08 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* -*- 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';
import { configureVisualRegression } from 'cypress-visual-regression';
export default defineConfig({
video: false,
defaultCommandTimeout: 10000,
modifyObstructiveCode: false,
fixturesFolder: 'data',
chromeWebSecurity: false,
screenshotOnRunFailure: true,
screenshotsFolder: './integration_tests/snapshots/actual',
env: {
USER_INTERFACE: process.env.USER_INTERFACE,
visualRegressionType: 'regression',
visualRegressionBaseDirectory: './integration_tests/snapshots/base',
},
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);
configureVisualRegression(on);
},
specPattern: 'integration_tests/**/*_spec.js',
},
});