@centreon/js-config 24.4.1-lambda-node20-jsconfig.0 → 24.4.1-release-24-04-next.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.
@@ -141,8 +141,10 @@ Cypress.Commands.add(
141
141
  }
142
142
  );
143
143
 
144
+ Cypress.Commands.add('adjustViewport', () => cy.viewport(1280, 590));
145
+
144
146
  Cypress.Commands.add('makeSnapshot', (title?: string) => {
145
- cy.viewport(1280, 590);
147
+ cy.adjustViewport();
146
148
  cy.matchImageSnapshot(title);
147
149
  });
148
150
 
@@ -155,7 +157,9 @@ Cypress.Commands.add('cssDisableMotion', (): void => {
155
157
  declare global {
156
158
  namespace Cypress {
157
159
  interface Chainable {
160
+ adjustViewport: () => Cypress.Chainable;
158
161
  cssDisableMotion: () => Cypress.Chainable;
162
+ getRequestCalls: (alias) => Cypress.Chainable;
159
163
  interceptAPIRequest: <T extends object>(
160
164
  props: InterceptAPIRequestProps<T>
161
165
  ) => Cypress.Chainable;
@@ -61,6 +61,8 @@ module.exports = ({
61
61
  reportFilename: '[name]-report.json'
62
62
  },
63
63
  video: true,
64
- videosFolder: `${mainCypressFolder}/results/videos`
64
+ videosFolder: `${mainCypressFolder}/results/videos`,
65
+ viewportHeight: 590,
66
+ viewportWidth: 1280
65
67
  });
66
68
  };
@@ -144,6 +144,7 @@ interface Host {
144
144
  alias?: string | null;
145
145
  checkCommand?: string | null;
146
146
  checkPeriod?: string | null;
147
+ hostGroup?: string;
147
148
  maxCheckAttempts?: number | null;
148
149
  name: string;
149
150
  passiveCheckEnabled?: boolean;
@@ -159,6 +160,7 @@ Cypress.Commands.add(
159
160
  alias = null,
160
161
  checkCommand = null,
161
162
  checkPeriod = null,
163
+ hostGroup = '',
162
164
  maxCheckAttempts = 1,
163
165
  name,
164
166
  passiveCheckEnabled = true,
@@ -176,7 +178,7 @@ Cypress.Commands.add(
176
178
  bodyContent: {
177
179
  action: 'ADD',
178
180
  object: 'HOST',
179
- values: `${name};${hostAlias};${address};${template};${poller};`
181
+ values: `${name};${hostAlias};${address};${template};${poller};${hostGroup}`
180
182
  }
181
183
  })
182
184
  .then(() => {
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.4.1-lambda-node20-jsconfig.0",
4
+ "version": "24.4.1-release-24-04-next.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"
@@ -34,6 +34,7 @@ const getBaseConfiguration = ({
34
34
  shared: [
35
35
  {
36
36
  '@centreon/ui-context': {
37
+ requiredVersion: '24.x',
37
38
  singleton: true
38
39
  }
39
40
  },