-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.js
42 lines (41 loc) · 915 Bytes
/
wdio.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
36
37
38
39
40
41
42
/* eslint-disable max-len */
const puppeteer = require('puppeteer');
exports.config = {
// debug: true,
// execArgv: ['--inspect=127.0.0.1:5859'],
host: '127.0.0.1',
port: '9517',
path: '/',
specs: [
'spec/*.spec.js',
],
maxInstances: 1,
capabilities: [{
browserName: 'chrome',
chromeOptions: {
binary: puppeteer.executablePath(),
args: ['--disable-dev-shm-usage', '--headless', '--no-sandbox'],
},
}],
services: ['chromedriver'],
chromeDriverArgs: ['--port=9517'],
sync: true,
logLevel: 'error',
coloredLogs: false,
deprecationWarnings: false,
bail: 0,
baseUrl: 'http://localhost:8080',
waitforTimeout: 1000,
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
timeout: 1200000,
},
onError(message) {
const logs = browser.log('browser');
logs.value.forEach((val) => {
console.log(val);
});
},
};