Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit 2972872

Browse files
committed
e2e: enable local IE testing
- specify IE driver in capabilities object for protractor; - if `--browser=ie`, download/update IE driver and temporarily add its path to process.env.path; Closes #452
1 parent 44f610a commit 2972872

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

browser/dev-tasks/e2e/protractor.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var Runner = require('protractor/lib/runner');
77

88
var ctx = require('../context');
99

10+
1011
var ptorConfig = {
1112
stackTrace: false,
1213
getPageTimeout: 180000,
@@ -32,11 +33,24 @@ var ptorConfig = {
3233
capabilities: {
3334
'phantomjs.binary.path': require('phantomjs').path,
3435
'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG'],
36+
'webdriver.ie.driver': 'IEDriverServer.exe'
3537
}
3638
};
3739

3840

3941
var go = function (args, cb) {
42+
43+
if (args.browser === 'ie') {
44+
var sjs = require('shelljs');
45+
sjs.exec(
46+
'node ' +
47+
path.normalize(' node_modules/protractor/bin/webdriver-manager') +
48+
' update --ie'
49+
);
50+
process.env.path += ';' +
51+
path.resolve(__dirname, '../../node_modules/protractor/selenium');
52+
}
53+
4054
// sauce/IE doens't like "localhost", so we punt.
4155
// running on Sauce now requires this hosts file entry
4256
if (args.sauce) {

browser/dev-tasks/e2e/seleniumLocal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ var close;
8383
var start = function (args, cb) {
8484
ctx.seleniumStarted = false;
8585
getServer(function (err) {
86-
console.log('server got');
8786
if (err) {
8887
return cb(err);
8988
}

0 commit comments

Comments
 (0)