-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor.conf.js
43 lines (42 loc) · 1.12 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
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
restartBrowserBetweenTests: false,
SELENIUM_PROMISE_MANAGER: true,
allScriptsTimeout: 300000,
getPageTimeout: 90000,
suites: {
unit: './test/**/*.ts',
},
directConnect:true,
capabilities: {
browserName: 'chrome',
acceptInsecureCerts: true,
chromeOptions: {
args: ['--headless',
'--disable-gpu',
'--window-size=1280x800',
'--disable-dev-shm-usage',
'--no-sandbox',
'--disable-infobars']
}
},
baseUrl: 'https://google.com',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 300000,
print: function () {
}
},
onPrepare() {
require('ts-node').register({
project: 'tsconfig.json',
});
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: 'all',
},
}));
browser.waitForAngularEnabled(false);
}
};