@centreon/js-config 23.10.1-MON-21452-remove-force-true.3 → 23.10.1-MON-fix-panel-edit-tests.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.
@@ -129,7 +129,7 @@ Cypress.Commands.add(
129
129
 
130
130
  Cypress.Commands.add('makeSnapshot', (title?: string) => {
131
131
  cy.viewport(1280, 590);
132
- cy.matchImageSnapshot(title);
132
+ cy.matchImageSnapshot(title, { capture: 'runner' });
133
133
  });
134
134
 
135
135
  declare global {
@@ -5,7 +5,6 @@ import { execSync } from 'child_process';
5
5
 
6
6
  import { defineConfig } from 'cypress';
7
7
  import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter';
8
- import { config as configDotenv } from 'dotenv';
9
8
 
10
9
  import esbuildPreprocessor from './esbuild-preprocessor';
11
10
  import plugins from './plugins';
@@ -15,7 +14,6 @@ interface ConfigurationOptions {
15
14
  cypressFolder?: string;
16
15
  dockerName?: string;
17
16
  env?: Record<string, unknown>;
18
- envFile?: string;
19
17
  isDevelopment?: boolean;
20
18
  specPattern: string;
21
19
  }
@@ -25,13 +23,8 @@ export default ({
25
23
  cypressFolder,
26
24
  isDevelopment,
27
25
  dockerName,
28
- env,
29
- envFile
26
+ env
30
27
  }: ConfigurationOptions): Cypress.ConfigOptions => {
31
- if (envFile) {
32
- configDotenv({ path: envFile });
33
- }
34
-
35
28
  const resultsFolder = `${cypressFolder || 'cypress'}/results`;
36
29
 
37
30
  const webImageVersion = execSync('git rev-parse --abbrev-ref HEAD')
@@ -58,7 +51,7 @@ export default ({
58
51
  },
59
52
  env: {
60
53
  ...env,
61
- OPENID_IMAGE_VERSION: process.env.MAJOR_VERSION || '24.04',
54
+ OPENID_IMAGE_VERSION: '23.04',
62
55
  WEB_IMAGE_OS: 'alma9',
63
56
  WEB_IMAGE_VERSION: webImageVersion,
64
57
  dockerName: dockerName || 'centreon-dev'
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-MON-21452-remove-force-true.3",
4
+ "version": "23.10.1-MON-fix-panel-edit-tests.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"
@@ -53,7 +53,6 @@
53
53
  "cypress-multi-reporters": "^1.6.3",
54
54
  "cypress-terminal-report": "^5.3.6",
55
55
  "dockerode": "^3.3.5",
56
- "dotenv": "^16.3.1",
57
56
  "esbuild": "^0.19.3",
58
57
  "mochawesome": "^7.1.3"
59
58
  }