diff --git a/karma.conf.js b/karma.conf.js index 096976c..35be504 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -76,9 +76,17 @@ module.exports = function (config) { // enable / disable watching file and executing tests whenever any file changes autoWatch: false, + customLaunchers: { + FirefoxHeadlessTouch: { + base: 'FirefoxHeadless', + prefs: { + 'dom.w3c_touch_events.enabled': 1 + } + } + }, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['ChromiumHeadless', 'FirefoxHeadless'], + browsers: ['ChromiumHeadless', 'FirefoxHeadlessTouch'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits