forked from qualityshepherd/protractor-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.js
56 lines (50 loc) · 1.78 KB
/
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
56
// solves `SyntaxError: Unexpected token import`
require("babel-register")({
presets: [ 'es2015' ]
});
exports.config = {
/**
* Uncomment ONE of the following to connect to: seleniumServerJar OR directConnect. Protractor
* will auto-start selenium if you uncomment the jar, or connect directly to chrome/firefox
* if you uncomment directConnect.
*/
//seleniumServerJar: "node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.4.0.jar",
directConnect: true,
specs: ['specs/*Spec.js'],
baseUrl: 'http://qualityshepherd.com',
framework: 'jasmine',
onPrepare: () => {
// set browser size...
browser.manage().window().setSize(1024, 800);
// better jasmine 2 reports...
const SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'specs'}));
},
capabilities: {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 2,
chromeOptions: {
args: [
// disable chrome's wakiness
'--disable-infobars',
'--disable-extensions',
'verbose',
'log-path=/tmp/chromedriver.log'
],
prefs: {
// disable chrome's annoying password manager
'profile.password_manager_enabled': false,
'credentials_enable_service': false,
'password_manager_enabled': false
}
}
},
jasmineNodeOpts: {
showColors: true,
displaySpecDuration: true,
// overrides jasmine's print method to report dot syntax for custom reports
print: () => {},
defaultTimeoutInterval: 50000
}
};