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