@centreon/js-config 24.5.8 → 24.6.0

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.
@@ -7,7 +7,10 @@ import './commands/monitoring';
7
7
 
8
8
  import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector';
9
9
 
10
- installLogsCollector({ enableExtendedCollector: true });
10
+ installLogsCollector({
11
+ commandTimings: 'seconds',
12
+ enableExtendedCollector: true
13
+ });
11
14
 
12
15
  const apiBase = '/centreon/api';
13
16
  const apiActionV1 = `${apiBase}/index.php`;
@@ -260,6 +263,7 @@ Cypress.Commands.add(
260
263
  return cy.get('.MuiAlert-message').then(($snackbar) => {
261
264
  if ($snackbar.text().includes('Login succeeded')) {
262
265
  cy.wait('@getNavigationList');
266
+ cy.get('.MuiAlert-message').should('not.be.visible');
263
267
  }
264
268
  });
265
269
  }
@@ -70,8 +70,10 @@ export default ({
70
70
  requestTimeout: 20000,
71
71
  retries: 0,
72
72
  screenshotsFolder: `${resultsFolder}/screenshots`,
73
- video: true,
73
+ video: isDevelopment,
74
74
  videoCompression: 0,
75
- videosFolder: `${resultsFolder}/videos`
75
+ videosFolder: `${resultsFolder}/videos`,
76
+ viewportHeight: 1080,
77
+ viewportWidth: 1920
76
78
  });
77
79
  };
@@ -25,9 +25,9 @@ export default (
25
25
 
26
26
  // force screen to be non-retina and just use our given resolution
27
27
  launchOptions.args.push('--force-device-scale-factor=1');
28
- }
29
28
 
30
- launchOptions.args.push(`--window-size=${width},${height}`);
29
+ launchOptions.args.push(`--window-size=${width},${height}`);
30
+ }
31
31
 
32
32
  return launchOptions;
33
33
  });
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": "24.5.8",
4
+ "version": "24.6.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"
@@ -21,7 +21,7 @@
21
21
  "prettier": "^3.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@badeball/cypress-cucumber-preprocessor": "^20.0.1",
24
+ "@badeball/cypress-cucumber-preprocessor": "^20.0.5",
25
25
  "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
26
26
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
27
27
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
@@ -30,9 +30,9 @@
30
30
  "@types/cypress-cucumber-preprocessor": "^4.0.5",
31
31
  "cypress": "^13.6.4",
32
32
  "cypress-multi-reporters": "^1.6.4",
33
- "cypress-terminal-report": "^6.0.0",
33
+ "cypress-terminal-report": "^6.0.2",
34
34
  "cypress-wait-until": "^3.0.1",
35
- "dotenv": "^16.4.1",
35
+ "dotenv": "^16.4.5",
36
36
  "esbuild": "^0.20.0",
37
37
  "eslint": "^8.53.0",
38
38
  "eslint-config-airbnb": "19.0.4",
@@ -52,8 +52,8 @@
52
52
  "eslint-plugin-sort-keys-fix": "^1.1.2",
53
53
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
54
54
  "mochawesome": "^7.1.3",
55
- "mysql2": "^3.9.1",
56
- "tar-fs": "^3.0.4",
57
- "testcontainers": "^10.7.1"
55
+ "mysql2": "^3.9.7",
56
+ "tar-fs": "^3.0.6",
57
+ "testcontainers": "^10.9.0"
58
58
  }
59
59
  }