configurable e2e host
parent
9e0f411582
commit
fece2e2737
|
@ -183,4 +183,9 @@ if (argv.seleniumAddress) {
|
||||||
config.seleniumAddress = argv.seleniumAddress;
|
config.seleniumAddress = argv.seleniumAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (argv.host) {
|
||||||
|
config.params.glob.host = argv.host;
|
||||||
|
}
|
||||||
|
|
||||||
exports.config = config;
|
exports.config = config;
|
||||||
|
|
27
run-e2e.js
27
run-e2e.js
|
@ -37,20 +37,21 @@ function backup() {
|
||||||
function launchProtractor(suit) {
|
function launchProtractor(suit) {
|
||||||
let protractorParams = ['conf.e2e.js', '--suite=' + suit, '--back=' + taigaBackPath];
|
let protractorParams = ['conf.e2e.js', '--suite=' + suit, '--back=' + taigaBackPath];
|
||||||
|
|
||||||
if (argv.json) {
|
var discard = [
|
||||||
protractorParams.push('--json');
|
"_",
|
||||||
}
|
"s",
|
||||||
|
"a",
|
||||||
|
"b"
|
||||||
|
];
|
||||||
|
|
||||||
if (argv.ie) {
|
for(var arg in argv) {
|
||||||
protractorParams.push('--ie');
|
if (discard.indexOf(arg) === -1) {
|
||||||
}
|
if(typeof argv[arg] === 'boolean') {
|
||||||
|
protractorParams.push('--' + arg);
|
||||||
if (argv.firefox) {
|
} else {
|
||||||
protractorParams.push('--firefox');
|
protractorParams.push('--' + arg + "=" + argv[arg]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (argv.seleniumAddress) {
|
|
||||||
protractorParams.push('--seleniumAddress=' + argv.seleniumAddress);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"});
|
child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"});
|
||||||
|
|
Loading…
Reference in New Issue