@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 (
|
|
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');
|
package/cypress/e2e/commands.ts
CHANGED
|
@@ -280,7 +280,16 @@ Cypress.Commands.add('logout', (): void => {
|
|
|
280
280
|
|
|
281
281
|
cy.contains(/^Logout$/).click();
|
|
282
282
|
|
|
283
|
-
cy.
|
|
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