-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprotractor.conf.js
More file actions
76 lines (61 loc) · 1.72 KB
/
Copy pathprotractor.conf.js
File metadata and controls
76 lines (61 loc) · 1.72 KB
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
68
69
70
71
72
73
74
75
76
const CLIOptions = require('aurelia-cli').CLIOptions;
const aureliaConfig = require('./aurelia_project/aurelia.json');
const cliOptions = new CLIOptions();
Object.assign(cliOptions, {
args: process.argv.slice(3)
});
const port = cliOptions.getFlagValue('port') || aureliaConfig.platform.port;
const host = cliOptions.getFlagValue('host') || aureliaConfig.platform.host || "localhost";
const headless = cliOptions.hasFlag('headless');
const config = {
port: port,
host: host,
baseUrl: `http://${host}:${port}/`,
specs: [
'**/*.e2e.js'
],
exclude: [],
framework: 'jasmine',
allScriptsTimeout: 110000,
jasmineNodeOpts: {
showTiming: true,
showColors: true,
isVerbose: true,
includeStackTrace: false,
defaultTimeoutInterval: 400000
},
SELENIUM_PROMISE_MANAGER: false,
directConnect: true,
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': [
'--show-fps-counter',
'--no-default-browser-check',
'--no-first-run',
'--disable-default-apps',
'--disable-popup-blocking',
'--disable-translate',
'--disable-background-timer-throttling',
'--disable-renderer-backgrounding',
'--disable-device-discovery-notifications',
'--no-sandbox',
'--disable-dev-shm-usage',
'--window-size=1024,768'
]
}
},
onPrepare: function() {
process.env.BABEL_TARGET = 'node';
process.env.IN_PROTRACTOR = 'true';
require('@babel/register');
},
plugins: [{
package: 'aurelia-protractor-plugin'
}],
};
if (headless) {
config.capabilities.chromeOptions.args.push("--no-gpu");
config.capabilities.chromeOptions.args.push("--headless");
}
exports.config = config;