How to get Karma to start Chrome with a specific language?
Asked Answered
I

0

7

I am using Karma as a test runner to execute my Jasmine unit tests. Is there a possibility to tell Karma that it should always start a Chrome instance with an English locale?

My current Karma configuration is this:

// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [process.env.TRAVIS ? 'Chrome_travis_ci' : 'Chrome'],
customLaunchers: {
  Chrome_travis_ci: {
    base: 'Chrome',
    flags: ['--no-sandbox']
  }
}
Interceptor answered 13/4, 2016 at 13:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.