-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.js
More file actions
35 lines (34 loc) · 932 Bytes
/
conf.js
File metadata and controls
35 lines (34 loc) · 932 Bytes
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
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
const defaultOptions = [
'--start-maximized',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-extensions'
];
const protractor = require('protractor');
exports.config = {
specs: [
'./tests/spec/*_spec.ts'
],
capabilities: {
browserName: 'chrome',
chromeOptions: {args: defaultOptions}
},
getPageTimeout: 10000,
allScriptsTimeout: 30000,
directConnect: true,
noGlobals: true,
baseUrl: 'http://the-internet.herokuapp.com/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 20000
},
onPrepare: function() {
protractor.browser.ignoreSynchronization = true;
jasmine.getEnv().addReporter(new SpecReporter);
require('ts-node').register({
project: './tsconfig.json'
});
},
};