@centreon/js-config 23.10.11-timezone-test-stabilization.5 → 23.10.11-timezone-test-stabilization.6

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.
@@ -358,12 +358,15 @@ Cypress.Commands.add(
358
358
  );
359
359
 
360
360
  Cypress.Commands.add('getTimeFromHeader', (): Cypress.Chainable => {
361
- return cy.get('header div[data-cy="clock"]').then(($time) => {
362
- const localTime = $time.children()[1].textContent;
363
-
364
- cy.log(`Time in header is ${localTime}`);
361
+ return cy.waitUntil(() => {
362
+ return cy.get('header div[data-cy="clock"]').then(($time) => {
363
+ const headerTime = $time.children()[1].textContent;
364
+ if (headerTime?.match(/\d+:\d+/)) {
365
+ return headerTime;
366
+ }
365
367
 
366
- return cy.wrap(localTime);
368
+ return false;
369
+ });
367
370
  });
368
371
  });
369
372
 
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": "23.10.11-timezone-test-stabilization.5",
4
+ "version": "23.10.11-timezone-test-stabilization.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"