-
Notifications
You must be signed in to change notification settings - Fork 38
/
wdio-chrome.conf.js
35 lines (33 loc) · 1.24 KB
/
wdio-chrome.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const merge = require('deepmerge');
const sharedConf = require('./wdio-shared.conf');
const { getTestConfiguration } = require('./test/configuration/configuration-helper');
const configuration = getTestConfiguration();
exports.config = merge(sharedConf.config, {
// =====================
// Server Configurations
// =====================
path: configuration.availableServices.chromedriver.path,
// Test runner services
// Services take over a specific job you don't want to take care of. They enhance
// your test setup with almost no effort. Unlike plugins, they don't add new
// commands. Instead, they hook themselves up into the test process.
services: ['chromedriver'],
// ============
// Capabilities
// ============
capabilities: [
{
maxInstances: 1,
acceptInsecureCerts: true,
browserName: 'chrome',
'goog:chromeOptions': {
args: [].concat(configuration.availableServices.chromedriver.headless ? [
'--no-sandbox',
'--disable-infobars',
'--headless',
'--disable-gpu',
'--window-size=1920,1080'] : [])
}
}
]
});