]>
Commit | Line | Data |
---|---|---|
3419e0e1 C |
1 | import { config as mainConfig } from './wdio.main.conf' |
2 | ||
3 | const prefs = { | |
4 | 'intl.accept_languages': 'en' | |
5 | } | |
450de91e | 6 | process.env.LANG = 'en' |
3419e0e1 C |
7 | |
8 | module.exports = { | |
9 | config: { | |
10 | ...mainConfig, | |
11 | ||
12 | runner: 'local', | |
13 | ||
6d210220 | 14 | maxInstances: 2, |
3419e0e1 C |
15 | |
16 | capabilities: [ | |
17 | { | |
18 | browserName: 'chrome', | |
3419e0e1 | 19 | 'goog:chromeOptions': { |
450de91e | 20 | args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ], |
3419e0e1 C |
21 | prefs |
22 | } | |
23 | }, | |
24 | { | |
25 | browserName: 'firefox', | |
26 | 'moz:firefoxOptions': { | |
3419e0e1 | 27 | binary: '/usr/bin/firefox-developer-edition', |
450de91e C |
28 | args: [ '--headless', '--window-size=1280,1024' ], |
29 | ||
3419e0e1 C |
30 | prefs |
31 | } | |
3419e0e1 C |
32 | } |
33 | ], | |
34 | ||
6d210220 C |
35 | services: [ 'chromedriver', 'geckodriver' ], |
36 | ||
37 | beforeSession: function (config, capabilities) { | |
38 | if (capabilities['browserName'] === 'chrome') { | |
39 | config.baseUrl = 'http://localhost:9001' | |
40 | } else { | |
41 | config.baseUrl = 'http://localhost:9002' | |
42 | } | |
43 | } | |
3419e0e1 C |
44 | } as WebdriverIO.Config |
45 | } |