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