Skip to content

Commit 24e9014

Browse files
committed
Added custom option for chrome
1 parent 4ca0334 commit 24e9014

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ui-tests/cypress.config.sample.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = defineConfig({
88
viewportWidth: 2000,
99
viewportHeight: 1100,
1010
numTestsKeptInMemory: 0,
11+
experimentalMemoryManagement: true,
1112
projectId: "000000",
1213
chromeWebSecurity: true,
1314
watchForFileChanges: true,
@@ -27,6 +28,15 @@ module.exports = defineConfig({
2728
}
2829
}
2930
});
31+
// before:browser:launch event for custom Chrome options
32+
on("before:browser:launch", (browser = {}, launchOptions) => {
33+
if (browser.family === "chromium") {
34+
launchOptions.args.push('--js-flags="--max_old_space_size=1024 --max_semi_space_size=1024"');
35+
}
36+
return launchOptions;
37+
});
3038
},
3139
},
3240
});
41+
42+

0 commit comments

Comments
 (0)