Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d3d1ea2
Added chromeWebSecurity true
can-angun Oct 7, 2024
4ca0334
Downgrade cypress version
can-angun Oct 8, 2024
24e9014
Added custom option for chrome
can-angun Oct 8, 2024
869b298
Updated cypress version
can-angun Oct 8, 2024
a774fd7
Downgrade cypress version
can-angun Oct 8, 2024
6961270
Empty-Commit
can-angun Oct 8, 2024
1ff922a
Empty-Commit
can-angun Oct 8, 2024
68e8e65
Empty-Commit
can-angun Oct 8, 2024
55390ba
Empty-Commit
can-angun Oct 8, 2024
6828b0a
Merge branch 'next' into QT-235
ar2rsawseen Oct 9, 2024
43790c8
Added chrome version as 118.
can-angun Oct 9, 2024
fda43b0
Merge branch 'QT-235' of github.com:Countly/countly-server into QT-235
can-angun Oct 9, 2024
2743154
Updated chrome version to 116
can-angun Oct 9, 2024
2c32f55
Empty-Commit
can-angun Oct 9, 2024
8004de8
Empty-Commit
can-angun Oct 9, 2024
a125525
Empty-Commit
can-angun Oct 9, 2024
a78961b
Updated cypress version to 13.4
can-angun Oct 9, 2024
986c6f9
Empty-Commit
can-angun Oct 9, 2024
71edd68
Added option for browser launch
can-angun Oct 10, 2024
724c813
Updated chromeWebSecurity parameter
can-angun Oct 10, 2024
4b55aa5
Empty-Commit
can-angun Oct 10, 2024
fe3d08d
Empty-Commit
can-angun Oct 10, 2024
63ad0a1
Empty-Commit
can-angun Oct 10, 2024
2a9bada
Added disable-dev-shm-usage parameter
can-angun Oct 10, 2024
6bf7ec5
Updated chrome version
can-angun Oct 10, 2024
6e916b6
Added CYPRESS_NO_COMMAND_LOG=1
can-angun Oct 10, 2024
b398c25
Updated chrome version
can-angun Oct 10, 2024
06c411b
Updated chrome dl url
can-angun Oct 10, 2024
5240b83
Updated chrome version to 113
can-angun Oct 10, 2024
c7f7f4e
Updated install chrome version
can-angun Oct 10, 2024
686de1e
Empty-Commit
can-angun Oct 10, 2024
8f1483f
Updated package lock
can-angun Oct 10, 2024
b6ecd51
Merge branch 'next' into QT-235
can-angun Oct 10, 2024
dddc940
Updated cypress version to latest
can-angun Oct 10, 2024
20a4493
Merge branch 'QT-235' of github.com:Countly/countly-server into QT-235
can-angun Oct 10, 2024
ec2743d
Empty-Commit
can-angun Oct 10, 2024
87f11bc
Empty-Commit
can-angun Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions ui-tests/cypress.config.sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = defineConfig({
viewportWidth: 2000,
viewportHeight: 1100,
numTestsKeptInMemory: 0,
experimentalMemoryManagement: true,
projectId: "000000",
chromeWebSecurity: false,
watchForFileChanges: true,
Expand All @@ -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;
});
},
},
});


4 changes: 1 addition & 3 deletions ui-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions ui-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Loading