Hi. In the context of Karma-based tests running on a Multiplatform browser test, I need to access th...
f
Hi. In the context of Karma-based tests running on a Multiplatform browser test, I need to access the Chrome custom launcher in order to add some flags. More specifically, I need to add "--ignore-certificate-errors"). Is there any way to add such flags when using one of the
useChromNnnn
methods? Should I create an issue requesting this feature? If so, where? There are already a couple of
useChromeNnnn
methods that set different launcher flags (e.g.
useChromeHeadlessNoSandbox
), however there isn't any to set the "--ignore-certificate-errors".
a
@Ilya Goncharov [JB] ^^
i
Hi, now it can be done only via JavaScript part, you can create
js
file inside
karma.config.d
You can write something like
Copy code
config.customLaunchers = {
    "ChromeHeadlessNnn": {
        "base": "ChromeHeadless",
        "flags": ["--ignore-certificate-errors"]
    }
}

config.browsers = ["ChromeHeadlessNnn"]