@centreon/js-config 23.10.11-enhance-e2e-tests-update-develop.16 → 23.10.11-timezone-test-stabilization.1

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.
@@ -260,7 +260,7 @@ Cypress.Commands.add(
260
260
  }: StopWebContainerProps = {}): Cypress.Chainable => {
261
261
  const logDirectory = `cypress/results/logs/${
262
262
  Cypress.spec.name
263
- }/${Cypress.currentTest.title.replace(/,|\s|\//g, '_')}`;
263
+ }/${Cypress.currentTest.title.replace(/[,\s/|<>*?:"]/g, '_')}`;
264
264
 
265
265
  return cy
266
266
  .visitEmptyPage()
@@ -277,6 +277,19 @@ Cypress.Commands.add(
277
277
  destination: `${logDirectory}/centreon`,
278
278
  source: '/var/log/centreon'
279
279
  })
280
+ .then(() => {
281
+ if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
282
+ return cy.copyFromContainer({
283
+ destination: `${logDirectory}/php`,
284
+ source: '/var/log/php-fpm'
285
+ });
286
+ }
287
+
288
+ return cy.copyFromContainer({
289
+ destination: `${logDirectory}/php/`,
290
+ source: '/var/log/php8.1-fpm-centreon-error.log'
291
+ });
292
+ })
280
293
  .stopContainer({ name });
281
294
  }
282
295
  );
@@ -341,6 +354,8 @@ Cypress.Commands.add('getTimeFromHeader', (): Cypress.Chainable => {
341
354
  return cy.get('header div[data-cy="clock"]').then(($time) => {
342
355
  const localTime = $time.children()[1].textContent;
343
356
 
357
+ cy.log(`Time in header is ${localTime}`);
358
+
344
359
  return localTime;
345
360
  });
346
361
  });
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-enhance-e2e-tests-update-develop.16",
4
+ "version": "23.10.11-timezone-test-stabilization.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"