-
Notifications
You must be signed in to change notification settings - Fork 3
/
protractor.conf.js
33 lines (27 loc) · 940 Bytes
/
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
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const crew = require('serenity-js/lib/stage_crew');
exports.config = {
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
// Framework definition - tells Protractor to use Serenity/JS
framework: 'custom',
frameworkPath: require.resolve('serenity-js'),
specs: [ 'features/**/*.feature' ],
cucumberOpts: {
require: [ 'features/**/step_definitions/*.ts' ], // loads step definitions
format: 'pretty', // enable console output
compiler: 'ts:ts-node/register' // interpret step definitions as TypeScript
},
serenity: {
crew: [
crew.serenityBDDReporter(),
crew.photographer()
],
dialect: 'cucumber',
stageCueTimeout: 30 * 1000 // up to 30 seconds by default
}
};