forked from ReactiveX/rxjs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
50 lines (44 loc) · 1.17 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
var httpServer = require('http-server');
exports.config = {
directConnect: true,
capabilities: {
browserName: 'chrome',
chromeOptions: {
//Important for benchpress to get timeline data from the browser
'args': ['--js-flags=--expose-gc'],
'perfLoggingPrefs': {
'traceCategories': 'v8,blink.console,disabled-by-default-devtools.timeline'
}
},
loggingPrefs: {
performance: 'ALL',
browser: 'ALL'
}
},
specs: ['perf/macro/**/*.spec.js'],
framework: 'jasmine2',
beforeLaunch: function () {
httpServer.createServer({
showDir: false
}).listen('8080', 'localhost');
},
onPrepare: function() {
// 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.$$;
});
afterEach(function() {
global.browser.quit();
global.browser = originalBrowser;
});
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
};