-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotractor.conf.js
55 lines (45 loc) · 1.32 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
'use strict';
var paths = {
e2e: "e2e"
};
var env = {
baseUrl: "http://localhost:3000",
//seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
"browserName": "chrome",
"chromeOptions": process.env.CHROME ? {
binary: process.env.CHROME
} : undefined
}
};
// An example configuration file.
exports.config = {
// The address of a running selenium server.
seleniumAddress: env.seleniumAddress,
// Capabilities to be passed to the webdriver instance.
capabilities: env.capabilities,
baseUrl: env.baseUrl + '?protractor-test',
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: [paths.e2e + '/**/*.js'],
rootElement: 'html',
framework: 'jasmine2',
// onPrepare: function() {
// "use strict";
// // wait until login page is visible
// browser.driver.get(env.baseUrl + '?protractor-test');
// browser.driver.wait(function() {
// return browser.driver.getCurrentUrl().then(function(url) {
// console.log("url is " + url);
// return /login$/.test(url);
// });
// });
// },
seleniumServerJar: process.env.SELENIUM_JAR,
chromeDriver: process.env.CHROMEDRIVER,
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
}
};