forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
38 lines (36 loc) · 977 Bytes
/
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
// Protractor conf file
var os = require('os');
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
allScriptsTimeout: 20000,
framework: 'jasmine',
directConnect: true,
baseUrl: 'http://127.0.0.1:3001',
specs: ['./e2e/specs/welcome.spec.ts',
'./e2e/specs/editor-define.spec.ts'],
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': './e2e/downloads'
}
}
}
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 60000
},
beforeLaunch: function() {
require('ts-node').register({
project: './tsconfig.json'
});
},
onPrepare: function(){
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
browser.manage().window().setSize(1280, 1024);
}
}