-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathwebdriver.config.js
46 lines (42 loc) · 1.03 KB
/
webdriver.config.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
43
44
45
46
// @flow weak
require('babel-core/register');
exports.config = {
specs: [
'./test/e2e/testAddExpense.js',
'./test/e2e/testDeleteExpense.js',
'./test/e2e/testEditExpense.js',
'./test/e2e/testDetailAccount.js',
'./test/e2e/testAddAccount.js',
'./test/e2e/testEditAccount.js',
'./test/e2e/testSettings.js',
'./test/e2e/testHome.js',
],
maxInstances: 1,
capabilities: [
{
browserName: 'chrome',
},
],
sync: false,
logLevel: 'silent',
coloredLogs: true,
baseUrl: '0.0.0.0:8000',
waitforTimeout: 5000,
framework: 'mocha',
reporter: 'dot',
mochaOpts: {
ui: 'bdd',
timeout: 600000, // 10min for long running tests
},
before: () => {
global.browser.addCommand('waitForDialog', () => {
return global.browser.pause(300);
});
global.browser.addCommand('waitForMenu', () => {
return global.browser.pause(400);
});
global.browser.addCommand('urlApp', url => {
return global.browser.url(`http://local.splitme.net:8000${url}`);
});
},
};