@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.
- package/cypress/e2e/commands.ts +12 -10
- package/package.json +1 -1
package/cypress/e2e/commands.ts
CHANGED
|
@@ -272,7 +272,10 @@ Cypress.Commands.add(
|
|
|
272
272
|
.wait('@getNavigationList');
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
cy
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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