-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathprotractorconfig.js
More file actions
30 lines (27 loc) · 923 Bytes
/
protractorconfig.js
File metadata and controls
30 lines (27 loc) · 923 Bytes
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
exports.config = {
framework: 'jasmine2',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/e2e/**/*_spec.js'],
baseUrl: 'file://' + __dirname + '/test/e2e/'.replace(/\\/g, "/"),
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
multiCapabilities: [{
'browserName': 'chrome'
}/*, {
'browserName': 'firefox'
}*/
/*,{
'browserName': 'internet explorer'
}*/
],
onPrepare: function() {
// By default, Protractor use data:text/html,<html></html> as resetUrl, but
// location.replace from the data: to the file: protocol is not allowed
// (we'll get ‘not allowed local resource’ error), so we replace resetUrl with one
// with the file: protocol (this particular one will open system's root folder)
browser.resetUrl = 'file://';
browser.ignoreSynchronization = true;
}
};