forked from hodgepodgers/ng-intl-tel-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
41 lines (33 loc) · 971 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
34
35
36
37
38
39
40
41
var path = require('path');
exports.config = {
rootElement: 'html',
seleniumServerJar: __dirname + '/node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar',
// A base URL for your application under test. Calls to protractor.get()
// with relative paths will be prepended with this.
baseUrl: 'http://localhost:8080',
specs: [
path.resolve('./ng-intl-tel-input.e2e.js')
],
params: {},
framework: 'mocha',
// Capabilities to be passed to the webdriver instance.
capabilities: {
browserName: 'firefox'
},
allScriptsTimeout: (1000 * 60 * 4),
getPageTimeout: 60000,
// Options to be passed to mocha
mochaOpts: {
slow: 5000,
timeout: 60000,
ui: 'bdd'
},
onPrepare: function () {
rootDir = __dirname + '/..';
var chai = require('chai')
.use(require('chai-as-promised'));
chai.config.truncateThreshold = 0;
expect = chai.expect;
browser.driver.get(browser.baseUrl);
}
};