-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
64 lines (47 loc) · 1.45 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
60
61
62
63
64
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
getPageTimeout: 1000000,
allScriptsTimeout: 180000,
framework: 'custom',
baseUrl: 'https://www.vroomdrive.com',
frameworkPath: require.resolve('protractor-cucumber-framework'),
// directConnect: true,
// chromeDriver: '/src/resources/drivers/chromedriver',
capabilities: {
'browserName': 'chrome',
shardTestFiles: true,
maxInstances: 1,
// Firefox Options
// 'moz:firefoxOptions': {
// args: ['--headless']
// }
// Chrome Options
// chromeOptions: {
// // args: ["--headless", "--disable-gpu", "--window-size=800x600"]
// args: ["--headless", "--disable-gpu"]
// }
},
// Run Chrome & Firefox Parallely
// multiCapabilities: [{
// 'browserName': 'firefox'
// }, {
// 'browserName': 'chrome'
// }],
specs: [
'./src/resources/features/*.feature'
],
cucumberOpts: {
compiler: ['js:babel-register'],
require: './src/js/step_definitions/*.js',
format: 'pretty',
// defaultTimeoutInterval: 160000,
},
onPrepare: function () {
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
global.expect = chai.expect;
}
};