Skip to content

Commit cfde6b8

Browse files
authored
Merge pull request #5756 from Countly/QT-235v2
[QT-235] Fix error: The Chrome Renderer process just crashed.
2 parents c8816d5 + 6c2564c commit cfde6b8

File tree

4 files changed

+61
-89
lines changed

4 files changed

+61
-89
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ jobs:
302302
cd ui-tests
303303
npm install
304304
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
305-
npm run cy:run:dashboard --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
305+
npm run cy:run:dashboard
306306
307307
- name: Upload UI tests artifacts
308308
if: ${{ failure() }}
@@ -381,7 +381,7 @@ jobs:
381381
cd ui-tests
382382
npm install
383383
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
384-
npm run cy:run:onboarding --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
384+
npm run cy:run:onboarding
385385
386386
- name: Upload UI tests artifacts
387387
if: ${{ failure() }}

ui-tests/cypress.config.sample.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = defineConfig({
77
defaultCommandTimeout: 30000,
88
viewportWidth: 2000,
99
viewportHeight: 1100,
10-
numTestsKeptInMemory: 1,
10+
numTestsKeptInMemory: 0,
1111
experimentalMemoryManagement: true,
1212
projectId: "000000",
1313
chromeWebSecurity: false,
@@ -28,9 +28,8 @@ module.exports = defineConfig({
2828
}
2929
}
3030
});
31-
// before:browser:launch event for custom Chrome options
3231
on("before:browser:launch", (browser, launchOptions) => {
33-
if (["chrome", "edge"].includes(browser.name)) {
32+
if (["chrome", "edge", "electron"].includes(browser.name)) {
3433
if (browser.isHeadless) {
3534
launchOptions.args.push("--no-sandbox");
3635
launchOptions.args.push("--disable-gl-drawing-for-tests");

ui-tests/package-lock.json

Lines changed: 52 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-tests/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Countly, Inc.",
66
"scripts": {
77
"cy:open": "cypress open",
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",
8+
"cy:run:dashboard": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --headless --no-runner-ui --browser electron",
9+
"cy:run:onboarding": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --headless --no-runner-ui --browser electron",
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
},
@@ -15,8 +15,10 @@
1515
"@faker-js/faker": "^8.2.0",
1616
"base-64": "^1.0.0",
1717
"chai": "^5.1.1",
18-
"cypress": "^13.15.0",
1918
"cypress-file-upload": "^5.0.8",
2019
"moment": "^2.29.4"
20+
},
21+
"devDependencies": {
22+
"cypress": "^13.15.2"
2123
}
2224
}

0 commit comments

Comments
 (0)