aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-03-16 12:59:43 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-03-16 13:02:23 +0100
commit1343f8f442037a4463846fab982c381bbf401cf0 (patch)
tree2ea834c8d77cd511c8b46b03a518721f3c48b043 /tests
parentfc27c4ccb6a63656e6b134901521df4f38d05406 (diff)
downloadnextcloud-server-1343f8f442037a4463846fab982c381bbf401cf0.tar.gz
nextcloud-server-1343f8f442037a4463846fab982c381bbf401cf0.zip
test: fix CI when running Karma testsfix/reset-phone-number
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/karma.config.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/karma.config.js b/tests/karma.config.js
index db8e6e9734d..072bb9d766a 100644
--- a/tests/karma.config.js
+++ b/tests/karma.config.js
@@ -18,8 +18,11 @@
* preprocessor, which is needed to be able to debug tests properly in a browser.
*/
+const { existsSync } = require('node:fs');
+
if (!process.env.CHROMIUM_BIN) {
- process.env.CHROMIUM_BIN = require('puppeteer').executablePath()
+ const chrome = require('puppeteer').executablePath()
+ process.env.CHROMIUM_BIN = chrome
}
/* jshint node: true */
@@ -243,14 +246,19 @@ module.exports = function(config) {
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
// use PhantomJS_debug for extra local debug
- browsers: ['ChromiumHeadless'],
+ browsers: ['Chrome_without_sandbox'],
// you can define custom flags
customLaunchers: {
PhantomJS_debug: {
base: 'PhantomJS',
debug: true
- }
+ },
+ // fix CI
+ Chrome_without_sandbox: {
+ base: 'ChromiumHeadless',
+ flags: ['--no-sandbox'],
+ },
},
// If browser does not capture in given timeout [ms], kill it