diff --git a/package-lock.json b/package-lock.json index d7063a6a1cb..21d2779b5e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "countly-server", - "version": "24.5.0", + "version": "24.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "countly-server", - "version": "24.5.0", + "version": "24.10.0", "dependencies": { "all-the-cities": "3.1.0", "argon2": "0.41.1", @@ -53,7 +53,7 @@ "method-override": "3.0.0", "moment": "2.30.1", "moment-timezone": "0.5.45", - "mongodb": "6.9.0", + "mongodb": "6.8.0", "nginx-conf": "2.1.0", "nodemailer": "6.9.15", "object-hash": "3.0.0", @@ -8373,9 +8373,9 @@ } }, "node_modules/mongodb": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.9.0.tgz", - "integrity": "sha512-UMopBVx1LmEUbW/QE0Hw18u583PEDVQmUmVzzBRH0o/xtE9DBRA5ZYLOjpLIa03i8FXjzvQECJcqoMvCXftTUA==", + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.8.0.tgz", + "integrity": "sha512-HGQ9NWDle5WvwMnrvUxsFYPd3JEbqD3RgABHBQRuoCEND0qzhsd0iH5ypHsf1eJ+sXmvmyKpP+FLOKY8Il7jMw==", "license": "Apache-2.0", "dependencies": { "@mongodb-js/saslprep": "^1.1.5", diff --git a/ui-tests/cypress.config.sample.js b/ui-tests/cypress.config.sample.js index 2baf98d1f5f..7a62f40fdcc 100644 --- a/ui-tests/cypress.config.sample.js +++ b/ui-tests/cypress.config.sample.js @@ -8,6 +8,7 @@ module.exports = defineConfig({ viewportWidth: 2000, viewportHeight: 1100, numTestsKeptInMemory: 0, + experimentalMemoryManagement: true, projectId: "000000", chromeWebSecurity: false, watchForFileChanges: true, @@ -27,6 +28,21 @@ module.exports = defineConfig({ } } }); + // before:browser:launch event for custom Chrome options + 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("--disable-dev-shm-usage"); + } + launchOptions.args.push('--js-flags="--max_old_space_size=3500 --max_semi_space_size=1024"'); + } + return launchOptions; + }); }, }, }); + + diff --git a/ui-tests/package-lock.json b/ui-tests/package-lock.json index 01ac0ecfa4b..d7d9ebe351b 100644 --- a/ui-tests/package-lock.json +++ b/ui-tests/package-lock.json @@ -12,11 +12,9 @@ "@faker-js/faker": "^8.2.0", "base-64": "^1.0.0", "chai": "^5.1.1", + "cypress": "^13.15.0", "cypress-file-upload": "^5.0.8", "moment": "^2.29.4" - }, - "devDependencies": { - "cypress": "^13.15.0" } }, "node_modules/@colors/colors": { diff --git a/ui-tests/package.json b/ui-tests/package.json index fa173ff6655..3ed0c6136bf 100644 --- a/ui-tests/package.json +++ b/ui-tests/package.json @@ -5,19 +5,17 @@ "author": "Countly, Inc.", "scripts": { "cy:open": "cypress open", - "cy:run:dashboard": "cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --browser chrome", - "cy:run:onboarding": "cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --browser chrome", + "cy:run:dashboard": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --browser chrome", + "cy:run:onboarding": "CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --browser chrome", "cy:run:login": "cypress run --spec **/login.cy.js --browser chrome", "cy:run:userActivity": "cypress run --spec **/analytics/loyalty/userActivity.cy.js --browser chrome" }, - "devDependencies": { - "cypress": "^13.15.0" - }, "license": "ISC", "dependencies": { "@faker-js/faker": "^8.2.0", "base-64": "^1.0.0", "chai": "^5.1.1", + "cypress": "^13.15.0", "cypress-file-upload": "^5.0.8", "moment": "^2.29.4" }