Skip to content

Commit 63a1218

Browse files
authored
Merge pull request #5647 from Countly/QT-235
[QT-235] Fix error: The Chrome Renderer process just crashed.
2 parents 79dcfcc + 87f11bc commit 63a1218

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-tests/cypress.config.sample.js

+16
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: false,
1314
watchForFileChanges: true,
@@ -27,6 +28,21 @@ module.exports = defineConfig({
2728
}
2829
}
2930
});
31+
// before:browser:launch event for custom Chrome options
32+
on("before:browser:launch", (browser, launchOptions) => {
33+
if (["chrome", "edge"].includes(browser.name)) {
34+
if (browser.isHeadless) {
35+
launchOptions.args.push("--no-sandbox");
36+
launchOptions.args.push("--disable-gl-drawing-for-tests");
37+
launchOptions.args.push("--disable-gpu");
38+
launchOptions.args.push("--disable-dev-shm-usage");
39+
}
40+
launchOptions.args.push('--js-flags="--max_old_space_size=3500 --max_semi_space_size=1024"');
41+
}
42+
return launchOptions;
43+
});
3044
},
3145
},
3246
});
47+
48+

ui-tests/package-lock.json

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-tests/package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
"author": "Countly, Inc.",
66
"scripts": {
77
"cy:open": "cypress open",
8-
"cy:run:dashboard": "cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --browser chrome",
9-
"cy:run:onboarding": "cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --browser chrome",
8+
"cy:run:dashboard": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --browser chrome",
9+
"cy:run:onboarding": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --browser chrome",
1010
"cy:run:login": "cypress run --spec **/login.cy.js --browser chrome",
1111
"cy:run:userActivity": "cypress run --spec **/analytics/loyalty/userActivity.cy.js --browser chrome"
1212
},
13-
"devDependencies": {
14-
"cypress": "^13.15.0"
15-
},
1613
"license": "ISC",
1714
"dependencies": {
1815
"@faker-js/faker": "^8.2.0",
1916
"base-64": "^1.0.0",
2017
"chai": "^5.1.1",
18+
"cypress": "^13.15.0",
2119
"cypress-file-upload": "^5.0.8",
2220
"moment": "^2.29.4"
2321
}

0 commit comments

Comments
 (0)