@centreon/js-config 24.4.3 → 24.4.4

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,6 +157,7 @@ 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;
159
162
  interceptAPIRequest: <T extends object>(
160
163
  props: InterceptAPIRequestProps<T>
@@ -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
  };
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.3",
4
+ "version": "24.4.4",
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
  },