@centreon/js-config 23.10.9-MON-19631.0 → 23.10.9
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 +9 -0
- package/package.json +1 -1
package/cypress/e2e/commands.ts
CHANGED
|
@@ -348,6 +348,14 @@ Cypress.Commands.add(
|
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
350
|
|
|
351
|
+
Cypress.Commands.add('getTimeFromHeader', (): Cypress.Chainable => {
|
|
352
|
+
return cy.get('header div[data-cy="clock"]').then(($time) => {
|
|
353
|
+
const localTime = $time.children()[1].textContent;
|
|
354
|
+
|
|
355
|
+
return localTime;
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
|
|
351
359
|
declare global {
|
|
352
360
|
namespace Cypress {
|
|
353
361
|
interface Chainable {
|
|
@@ -363,6 +371,7 @@ declare global {
|
|
|
363
371
|
) => Cypress.Chainable;
|
|
364
372
|
executeCommandsViaClapi: (fixtureFile: string) => Cypress.Chainable;
|
|
365
373
|
getIframeBody: () => Cypress.Chainable;
|
|
374
|
+
getTimeFromHeader: () => Cypress.Chainable;
|
|
366
375
|
getWebVersion: () => Cypress.Chainable;
|
|
367
376
|
hoverRootMenuItem: (rootItemNumber: number) => Cypress.Chainable;
|
|
368
377
|
loginByTypeOfUser: ({
|
package/package.json
CHANGED