-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
49 lines (40 loc) · 1.18 KB
/
config.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
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
//protractor.conf.js
exports.config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
getPageTimeout: 60000,
allScriptsTimeout: 60000,
framework: 'custom',
// path relative to the current config file
frameworkPath: require.resolve('protractor-cucumber-framework'),
capabilities: {
'browserName': 'chrome'
},
// Spec patterns are relative to this directory.
specs: [
'features/*.feature',
],
baseURL: 'http://localhost:8080/',
onPrepare: function () {
browser.manage().window().maximize();
browser.manage().timeouts().implicitlyWait(50000);
global.expect = chai.expect;
},
cucumberOpts: {
//require: 'features/step_definitions/*.steps.js',
require: [
'features/step_definitions/*.js',
'features/support/hook.js',
'features/support/env.js',
//'features/support/hookhtml.js'
],
format: ['json:reports/cucumber-test-results.json', 'pretty'],
//tags: '@AddNewTask,@AngularPage',
tags: '@TabLogin',
format: 'pretty',
profile: false,
'no-source': true
}
};