forked from angular/universal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
67 lines (57 loc) · 1.67 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
56
57
58
59
60
61
62
63
64
65
66
67
exports.config = {
baseUrl: 'http://localhost:3000',
specs: [
'test/*.e2e.js'
],
allScriptsTimeout: 11000,
framework: 'jasmine2',
jasmineNodeOpts: {
defaultTimeoutInterval: 60000,
showTiming: true,
print: function(){} // remove the dots!!
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
//Important for benchpress to get timeline data from the browser
'args': ['--js-flags=--expose-gc'],
'perfLoggingPrefs': {
'traceCategories': 'blink.console,disabled-by-default-devtools.timeline'
}
},
loggingPrefs: {
performance: 'ALL'
}
},
// https://github.com/mllrsohn/gulp-protractor#protractor-webdriver
seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.51.0.jar',
//seleniumAddress: 'http://localhost:4444/wd/hub',
onPrepare: function() {
browser.manage().deleteAllCookies();
browser.ignoreSynchronization = true;
var SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({
displayStacktrace:'none',
displaySpecDuration: true,
verbose: 1,
showStack: true,
color: true
}));
/*
// open a new browser for every benchmark
var originalBrowser = browser;
var _tmpBrowser;
beforeEach(function() {
global.browser = originalBrowser.forkNewDriverInstance();
global.element = global.browser.element;
global.$ = global.browser.$;
global.$$ = global.browser.$$;
global.browser.ignoreSynchronization = true;
});
afterEach(function() {
global.browser.quit();
global.browser = originalBrowser;
});
*/
}
};