@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.
|
|
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>
|
package/package.json
CHANGED