@centreon/js-config 25.4.1 → 25.4.3

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.
@@ -35,7 +35,10 @@ module.exports = ({
35
35
  });
36
36
 
37
37
  on('before:browser:launch', (browser, launchOptions) => {
38
- if (browser.name === 'chrome' && browser.isHeadless) {
38
+ if (
39
+ ['chromium', 'chrome'].includes(browser.name) &&
40
+ browser.isHeadless
41
+ ) {
39
42
  launchOptions.args.push('--headless=new');
40
43
  launchOptions.args.push('--force-color-profile=srgb');
41
44
  launchOptions.args.push('--window-size=1400,1200');
@@ -280,7 +280,16 @@ Cypress.Commands.add('logout', (): void => {
280
280
 
281
281
  cy.contains(/^Logout$/).click();
282
282
 
283
- cy.wait('@logout').its('response.statusCode').should('eq', 302);
283
+ cy.waitUntil(() =>
284
+ cy.wait('@logout').then((interception) => {
285
+ return interception?.response?.statusCode === 302;
286
+ }),
287
+ {
288
+ errorMsg: 'Logout did not complete successfully',
289
+ timeout: 30000,
290
+ interval: 2000
291
+ }
292
+ );
284
293
 
285
294
  // https://github.com/cypress-io/cypress/issues/25841
286
295
  cy.clearAllCookies();
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": "25.4.1",
4
+ "version": "25.4.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"