forked from Training-Predix/locomotive-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
38 lines (35 loc) · 1.26 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
exports.config = {
baseUrl: 'http://localhost:9000',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/e2e/specs/**/*.js'],
seleniumserverjar: 'node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar',
chromedriver: 'node_modules/protractor/selenium/chromedriver',
seleniumargs: ['-dwebdriver.chrome.driver="node_modules/protractor/selenium/chromedriver"'],
capabilities: {
'browserName': 'chrome'
},
jasmineNodeOpts: {
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 600000
},
params: {
baseUrl: 'http://localhost:9000/#'
},
onPrepare: function() {
browser.manage().window().setSize(1024, 768);
browser.driver.get(browser.params.baseUrl);
//If authentication is enabled - use this instead of the wait below
//require('./test/e2e/models/login-page').login();
browser.driver.wait(function() {
return browser.driver.getCurrentUrl().then(function(url) {
//if redirected to home successfully, start the test
return /home/.test(url);
});
}, 6000);
},
onComplete: function() {
browser.driver.quit();
}
};