]>
Commit | Line | Data |
---|---|---|
1 | import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils' | |
2 | import { config as mainConfig } from './wdio.main.conf' | |
3 | ||
4 | const prefs = { | |
5 | 'intl.accept_languages': 'en' | |
6 | } | |
7 | process.env.LANG = 'en' | |
8 | ||
9 | module.exports = { | |
10 | config: { | |
11 | ...mainConfig, | |
12 | ||
13 | runner: 'local', | |
14 | ||
15 | maxInstancesPerCapability: 1, | |
16 | ||
17 | capabilities: [ | |
18 | { | |
19 | browserName: 'chrome', | |
20 | 'goog:chromeOptions': { | |
21 | args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ], | |
22 | prefs | |
23 | } | |
24 | }, | |
25 | { | |
26 | browserName: 'firefox', | |
27 | 'moz:firefoxOptions': { | |
28 | binary: '/usr/bin/firefox-developer-edition', | |
29 | args: [ '--headless', '--window-size=1280,1024' ], | |
30 | ||
31 | prefs | |
32 | } | |
33 | } | |
34 | ], | |
35 | ||
36 | services: [ 'chromedriver', 'geckodriver' ], | |
37 | ||
38 | beforeSession: beforeLocalSession, | |
39 | beforeSuite: beforeLocalSuite, | |
40 | afterSuite: afterLocalSuite | |
41 | } as WebdriverIO.Config | |
42 | } |