forked from zombiQWERTY/angular-webpack-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotractor.bdd.conf.js
43 lines (29 loc) · 882 Bytes
/
protractor.bdd.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
var env = require('./environment.js');
exports.config = {
//seleniumAddress: env.seleniumAddress,
seleniumPort: 4444,
seleniumServerJar: env.seleniumServerJar,
chromeDriver: env.chromeDriver,
specs: [
'features/**/*.feature'
],
capabilities: env.capabilities,
baseUrl: env.baseUrl,
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
'format': ['pretty'],
'tags': ['~@wip'],
'require': 'features/**/*.js'
},
onPrepare: function() {
// Use the external Chai As Promised to deal with resolving promises in
// expectations.
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
global.expect = chai.expect;
// Chai expect().to.exist syntax makes default jshint unhappy.
// jshint expr:true
}
};