select browser in e2e
parent
148ca16184
commit
7031a80c88
13
conf.e2e.js
13
conf.e2e.js
|
@ -158,4 +158,17 @@ if (argv.json) {
|
|||
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;
|
||||
|
|
|
@ -41,6 +41,14 @@ function launchProtractor(suit) {
|
|||
protractorParams.push('--json');
|
||||
}
|
||||
|
||||
if (argv.ie) {
|
||||
protractorParams.push('--ie');
|
||||
}
|
||||
|
||||
if (argv.firefox) {
|
||||
protractorParams.push('--firefox');
|
||||
}
|
||||
|
||||
child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue