-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprotractor.conf.js
More file actions
45 lines (35 loc) · 1.2 KB
/
protractor.conf.js
File metadata and controls
45 lines (35 loc) · 1.2 KB
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
const isCI = () => process.env.CI && process.env.CI === 'true';
/**
* To learn more about the protractor.conf.js check out:
* https://github.com/angular/protractor/blob/master/lib/config.ts
*/
exports.config = {
baseUrl: 'https://www.angularjs.org/',
directConnect: true,
// https://github.com/angular/protractor/blob/master/docs/timeouts.md
allScriptsTimeout: 110000,
// Load Serenity/JS
framework: 'custom',
frameworkPath: require.resolve('serenity-js'),
specs: [ 'features/**/*.feature' ],
cucumberOpts: {
require: [ 'features/**/*.ts' ],
format: 'pretty',
compiler: 'ts:ts-node/register',
tags: ['~@wip']
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--disable-infobars',
'--headless',
'--disable-gpu',
'--window-size=800,600'
].
// Required on Travis CI when running the build without sudo
// https://developers.google.com/web/updates/2017/06/headless-karma-mocha-chai#running_it_all_on_travis_ci
concat(isCI() ? ['--no-sandbox'] : [])
}
}
};