select browser in e2e

stable
Juanfran 2016-05-17 09:05:58 +02:00
parent 148ca16184
commit 7031a80c88
2 changed files with 21 additions and 0 deletions

View File

@ -158,4 +158,17 @@ if (argv.json) {
config.mochaOpts.reporter = 'reporter-file'; config.mochaOpts.reporter = 'reporter-file';
} }
if (argv.firefox) {
config.capabilities = {
browserName: 'firefox'
};
}
if (argv.ie) {
config.capabilities = {
browserName: 'internet explorer',
version: '11'
};
}
exports.config = config; exports.config = config;

View File

@ -41,6 +41,14 @@ function launchProtractor(suit) {
protractorParams.push('--json'); protractorParams.push('--json');
} }
if (argv.ie) {
protractorParams.push('--ie');
}
if (argv.firefox) {
protractorParams.push('--firefox');
}
child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"}); child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"});
} }