@centreon/js-config 24.4.37 → 24.4.39

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.
@@ -272,7 +272,10 @@ Cypress.Commands.add(
272
272
  .wait('@getNavigationList');
273
273
  }
274
274
 
275
- cy.visit(`${Cypress.config().baseUrl}`)
275
+ return cy
276
+ .visit(`${Cypress.config().baseUrl}`)
277
+ .getByLabel({ label: 'Alias', tag: 'input' })
278
+ .should('be.visible')
276
279
  .fixture(`users/${jsonName}.json`)
277
280
  .then((credential) => {
278
281
  cy.getByLabel({ label: 'Alias', tag: 'input' }).type(
@@ -281,16 +284,15 @@ Cypress.Commands.add(
281
284
  cy.getByLabel({ label: 'Password', tag: 'input' }).type(
282
285
  `{selectAll}{backspace}${credential.password}`
283
286
  );
284
- })
285
- .getByLabel({ label: 'Connect', tag: 'button' })
286
- .click();
287
+ cy.getByLabel({ label: 'Connect', tag: 'button' }).click();
287
288
 
288
- return cy.get('.MuiAlert-message').then(($snackbar) => {
289
- if ($snackbar.text().includes('Login succeeded')) {
290
- cy.wait('@getNavigationList');
291
- cy.get('.MuiAlert-message').should('not.be.visible');
292
- }
293
- });
289
+ return cy.get('.MuiAlert-message').then(($snackbar) => {
290
+ if ($snackbar.text().includes('Login succeeded')) {
291
+ cy.wait('@getNavigationList');
292
+ cy.get('.MuiAlert-message').should('not.be.visible');
293
+ }
294
+ });
295
+ });
294
296
  }
295
297
  );
296
298
 
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.37",
4
+ "version": "24.4.39",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"