@centreon/js-config 23.10.1-display-current-step.0 → 23.10.1-display-current-step.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,9 +35,10 @@ export default ({
35
35
  defaultCommandTimeout: 6000,
36
36
  e2e: {
37
37
  excludeSpecPattern: ['*.js', '*.ts', '*.md'],
38
- reporter: require.resolve(
39
- '@badeball/cypress-cucumber-preprocessor/pretty-reporter'
40
- ),
38
+ reporter: 'cypress-multi-reporters',
39
+ reporterOptions: {
40
+ configFile: `${__dirname}/reporter-config.js`
41
+ },
41
42
  setupNodeEvents: async (on, config) => {
42
43
  await esbuildPreprocessor(on, config);
43
44
  tasks(on);
@@ -54,14 +55,6 @@ export default ({
54
55
  dockerName: dockerName || 'centreon-dev'
55
56
  },
56
57
  execTimeout: 60000,
57
- reporter: 'mochawesome',
58
- reporterOptions: {
59
- html: false,
60
- json: true,
61
- overwrite: true,
62
- reportDir: `${resultsFolder}/reports`,
63
- reportFilename: '[name]-report.json'
64
- },
65
58
  requestTimeout: 10000,
66
59
  retries: 0,
67
60
  screenshotsFolder: `${resultsFolder}/screenshots`,
@@ -12,7 +12,9 @@ export default (
12
12
  const height = 1080;
13
13
 
14
14
  if ((browser as { name }).name === 'chrome') {
15
- launchOptions.args.push('--headless=new');
15
+ if (config.isTextTerminal) {
16
+ launchOptions.args.push('--headless=new');
17
+ }
16
18
 
17
19
  // flags description : https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
18
20
  launchOptions.args.push('--disable-gpu');
@@ -20,9 +22,9 @@ export default (
20
22
  launchOptions.args.push('--disable-extensions');
21
23
  launchOptions.args.push('--hide-scrollbars');
22
24
  launchOptions.args.push('--mute-audio');
23
- launchOptions.args.push('--hide-scrollbars');
24
25
 
25
26
  launchOptions.args.push(`--window-size=${width},${height}`);
27
+
26
28
  // force screen to be non-retina and just use our given resolution
27
29
  launchOptions.args.push('--force-device-scale-factor=1');
28
30
  }
@@ -0,0 +1,12 @@
1
+ module.exports = {
2
+ mochawesomeReporterOptions: {
3
+ html: false,
4
+ json: true,
5
+ overwrite: true,
6
+ reportDir: 'cypress/results/reports',
7
+ reportFilename: '[name]-report.json'
8
+ },
9
+ reporterEnabled: `mochawesome,${require.resolve(
10
+ '@badeball/cypress-cucumber-preprocessor/pretty-reporter'
11
+ )}`
12
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/js-config",
3
3
  "description": "Centreon Frontend shared build configuration",
4
- "version": "23.10.1-display-current-step.0",
4
+ "version": "23.10.1-display-current-step.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"
@@ -23,6 +23,7 @@
23
23
  "@tsconfig/node16": "^16.1.1",
24
24
  "@types/cypress-cucumber-preprocessor": "^4.0.2",
25
25
  "@types/dockerode": "^3.3.19",
26
+ "cypress-multi-reporters": "^1.6.3",
26
27
  "dockerode": "^3.3.5",
27
28
  "esbuild": "^0.19.3",
28
29
  "eslint": "^8.17.0",