@centreon/ui 23.10.58 → 23.10.59

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "23.10.58",
3
+ "version": "23.10.59",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -73,15 +73,13 @@ describe('Multi connected autocomplete', () => {
73
73
  });
74
74
  });
75
75
 
76
- cy.matchImageSnapshot(
77
- 'displays the list when the user clicks on the input'
78
- );
76
+ cy.makeSnapshot('displays the list when the user clicks on the input');
79
77
 
80
78
  cy.get('@input').click();
81
79
 
82
80
  cy.get('@listOptions').should('not.exist');
83
81
 
84
- cy.matchImageSnapshot('hides the list when the user clicks on the input');
82
+ cy.makeSnapshot('hides the list when the user clicks on the input');
85
83
  });
86
84
 
87
85
  it('displays exactly one option on the list when the user types that option', () => {
@@ -109,7 +107,7 @@ describe('Multi connected autocomplete', () => {
109
107
  cy.contains(optionOne).should('be.visible');
110
108
  });
111
109
 
112
- cy.matchImageSnapshot();
110
+ cy.makeSnapshot();
113
111
  });
114
112
 
115
113
  it('displays all options on the list when the user searches for and selects an option', () => {
@@ -156,6 +154,6 @@ describe('Multi connected autocomplete', () => {
156
154
  });
157
155
  });
158
156
 
159
- cy.matchImageSnapshot();
157
+ cy.makeSnapshot();
160
158
  });
161
159
  });
@@ -105,7 +105,7 @@ describe('Listing', () => {
105
105
  });
106
106
  });
107
107
 
108
- cy.matchImageSnapshot();
108
+ cy.makeSnapshot();
109
109
  });
110
110
 
111
111
  it('collapses the row when the corresponding icon si clicked', () => {
@@ -115,6 +115,6 @@ describe('Listing', () => {
115
115
 
116
116
  cy.contains('Sub item 100').should('not.exist');
117
117
 
118
- cy.matchImageSnapshot();
118
+ cy.makeSnapshot();
119
119
  });
120
120
  });
@@ -59,7 +59,7 @@ data.forEach((item) =>
59
59
  });
60
60
 
61
61
  it(`displays correctly the dates design when screen resolution is ${width}px`, () => {
62
- cy.matchImageSnapshot(`${width}px`);
62
+ cy.makeSnapshot(`${width}px`);
63
63
  });
64
64
  })
65
65
  );
@@ -499,7 +499,7 @@ testData.forEach((item) =>
499
499
  getNextMonth({ currentMonth, labelButton: item.button });
500
500
  }
501
501
 
502
- cy.matchImageSnapshot(
502
+ cy.makeSnapshot(
503
503
  `calendar-${item.timezone}-${
504
504
  Object.keys(element)[0]
505
505
  }-when-clicking-on-${item.button}`
@@ -132,6 +132,6 @@ describe('License', () => {
132
132
 
133
133
  cy.findByText(labelLicenseWarning('centreon-autodiscovery-server', 10));
134
134
 
135
- cy.matchImageSnapshot();
135
+ cy.makeSnapshot();
136
136
  });
137
137
  });