Skip to content

Commit

Permalink
EMA-150 auto test memory optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
szsanyi committed Jul 12, 2024
1 parent 9209851 commit 3ade4ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dev/testv2/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ module.exports = defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
on("before:browser:launch", (browser, launchOptions) => {
if (["chrome", "edge"].includes(browser.name)) {
if (browser.isHeadless) {
launchOptions.args.push("--no-sandbox");
launchOptions.args.push("--disable-gl-drawing-for-tests");
launchOptions.args.push("--disable-gpu");
}
launchOptions.args.push("--js-flags=--max-old-space-size=3500");
}
return launchOptions;
});

return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://magento-test.local/index.php/default/',
Expand Down

0 comments on commit 3ade4ba

Please sign in to comment.