-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor.conf.js
59 lines (46 loc) · 1.54 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
48
49
50
51
52
53
54
55
56
57
58
59
const
crew = require('serenity-js/lib/stage_crew');
glob = require('glob'),
protractor = require.resolve('protractor'),
node_modules = protractor.substring(0, protractor.lastIndexOf('node_modules') + 'node_modules'.length),
seleniumJar = glob.sync(`${node_modules}/protractor/**/selenium-server-standalone-*.jar`).pop();
exports.config = {
baseUrl: 'https://tfl.gov.uk',
seleniumServerJar: seleniumJar,
allScriptsTimeout: 110000,
disableChecks: true,
// https://github.com/protractor-cucumber-framework/protractor-cucumber-framework#uncaught-exceptions
ignoreUncaughtExceptions: true,
framework: 'custom',
frameworkPath: require.resolve('serenity-js'),
serenity: {
crew: [
crew.serenityBDDReporter(),
// crew.photographer()
crew.Photographer.who(_ => _
.takesPhotosOf(_.Failures)
)
// crew.consoleReporter()
]
},
specs: [ 'features/**/*.feature' ],
cucumberOpts: {
require: [ 'features/**/*.ts' ],
format: 'pretty',
compiler: 'ts:ts-node/register'
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--disable-infobars',
// "--headless",
// "--disable-gpu",
// "--window-size=1024x768"
// '--incognito',
// '--disable-extensions',
// '--show-fps-counter=true'
]
}
}
};