-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor.conf.js
47 lines (41 loc) · 1.23 KB
/
protractor.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
43
44
45
46
47
require('dotenv').config()
var ancillaryMethods = require('./ancillaryMethods.js');
exports.config = {
baseUrl: 'http://localhost:3000',
getPageTimeout: 60000,
allScriptsTimeout: 500000,
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
browserName: process.env.BROWSER,
version: '',
platform: 'ANY'
},
// This can be changed via the command line as:
// --params.login.user 'ngrocks'
params: {
passwords: {
test: process.env.TEST_PASSWORD,
juanra: process.env.JUANRA_PASSWORD
},
events: ancillaryMethods.getNumEventsOfCurrentMonthForUserId(18,'5BMBQH'),
date: {
currentMonth: ancillaryMethods.getDates()[0],
twoMonthsBefore: ancillaryMethods.getDates()[1],
oneMonthBefore: ancillaryMethods.getDates()[2]
}
},
framework: 'custom',
frameworkPath: 'node_modules/protractor-cucumber-framework',
specs: [
'features/*.feature'
],
jasmineNodeOpts: {
showColors: true
},
useAllAngular2AppRoots: true,
cucumberOpts: {
require: 'features/step_definitions/*.js',
format: 'pretty', // or summary
keepAlive: false
}
};