@centreon/js-config 23.10.59 → 23.10.61

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.
@@ -332,6 +332,11 @@ Cypress.Commands.add(
332
332
  name,
333
333
  source: '/var/log/centreon'
334
334
  })
335
+ .copyFromContainer({
336
+ destination: `${logDirectory}/centreon-gorgone`,
337
+ name,
338
+ source: '/var/log/centreon-gorgone'
339
+ })
335
340
  .then(() => {
336
341
  if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
337
342
  return cy.copyFromContainer({
@@ -350,6 +355,24 @@ Cypress.Commands.add(
350
355
  { failOnNonZeroExit: false }
351
356
  );
352
357
  })
358
+ .then(() => {
359
+ if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
360
+ return cy.copyFromContainer({
361
+ destination: `${logDirectory}/httpd`,
362
+ name,
363
+ source: '/var/log/httpd'
364
+ });
365
+ }
366
+
367
+ return cy.copyFromContainer(
368
+ {
369
+ destination: `${logDirectory}/apache2`,
370
+ name,
371
+ source: '/var/log/apache2'
372
+ },
373
+ { failOnNonZeroExit: false }
374
+ );
375
+ })
353
376
  .exec(`chmod -R 755 "${logDirectory}"`)
354
377
  .stopContainer({ name });
355
378
  }
@@ -366,7 +389,7 @@ Cypress.Commands.add(
366
389
 
367
390
  cy.exec(`docker logs ${name}`).then(({ stdout }) => {
368
391
  cy.writeFile(
369
- `cypress/results/logs/${Cypress.spec.name.replace(
392
+ `results/logs/${Cypress.spec.name.replace(
370
393
  artifactIllegalCharactersMatcher,
371
394
  '_'
372
395
  )}/${Cypress.currentTest.title.replace(
@@ -11,7 +11,7 @@ export default (
11
11
  const width = 1920;
12
12
  const height = 1080;
13
13
 
14
- if (browser.name === 'chrome') {
14
+ if (browser.family === 'chromium') {
15
15
  if (browser.isHeadless) {
16
16
  launchOptions.args.push('--headless=new');
17
17
  }
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.59",
4
+ "version": "23.10.61",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"