Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(jasmine): Pass control flow to Jasminewd (#3519)
Browse files Browse the repository at this point in the history
Fixes #3505 and #2790, which is caused by JasmineWd and Protractor using different
controlflow instances
  • Loading branch information
heathkit authored Sep 7, 2016
1 parent 64b4910 commit c7fff5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/frameworks/jasmine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var q = require('q');
var webdriver = require('selenium-webdriver');

var RunnerReporter = function(emitter) {
this.emitter = emitter;
Expand Down Expand Up @@ -62,7 +63,7 @@ exports.run = function(runner, specs) {
var jrunner = new JasmineRunner();
/* global jasmine */

require('jasminewd2');
require('jasminewd2').init(webdriver.promise.controlFlow());

var jasmineNodeOpts = runner.getConfig().jasmineNodeOpts;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"chalk": "^1.1.3",
"glob": "^7.0.3",
"jasmine": "2.4.1",
"jasminewd2": "0.0.9",
"jasminewd2": "0.0.10",
"optimist": "~0.6.0",
"q": "1.4.1",
"saucelabs": "~1.3.0",
Expand Down

0 comments on commit c7fff5e

Please sign in to comment.