-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
55 lines (44 loc) · 1.49 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
const
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(),
crew = require('serenity-js/lib/stage_crew');
exports.config = {
baseUrl: 'http://todomvc.com',
seleniumServerJar: seleniumJar,
// https://github.com/angular/protractor/blob/master/docs/timeouts.md
allScriptsTimeout: 110000,
disableChecks: true,
// https://github.com/protractor-cucumber-framework/protractor-cucumber-framework#uncaught-exceptions
ignoreUncaughtExceptions: true,
framework: 'custom',
frameworkPath: require.resolve('serenity-js'),
specs: [ 'features/**/*.feature' ],
serenity: {
crew: [
crew.serenityBDDReporter(),
crew.photographer()
]
},
cucumberOpts: {
require: [ 'features/**/*.ts' ],
format: 'pretty',
compiler: 'ts:ts-node/register',
tags: '~@ignore'
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'disable-infobars',
'--headless',
'--disable-gpu',
'--window-size=1280,900'
// 'incognito',
// 'disable-extensions',
// 'show-fps-counter=true'
]
}
}
};