I have configured Karma to use Chrome for its test:
browsers: [ 'Chrome' ];
each time I run Karma it starts Chromium in some kind of default configuration which has hardware acceleration enabled.
Hardware acceleration has some issues on my system and makes the browser rather unuseable so I would like it to be switched off by default. I have tried to turn it off in the settings, but my changes are not persistent and every time I restart Karma or the Browser the hardware acceleration is enabled again.
Is there any way I can create a customLauncher configuration for Chrome where I am able to deactivate hardware acceleration?
On a side note it would also be nice if I could use Google Chrome instead of Chromium, it seems that Karma always prefers Chromium if it's installed on the system.
I have tried to create the following customLaunchers configuration, but it fails to load with an error:
customLaunchers: {
Chrome_Persistent: {
base: 'Chrome',
chromeDataDir: path.resolve('.chrome')
}
}
The error is:
ERROR [config]: Error in config file! [ReferenceError: path is not defined] ReferenceError: path is not defined