Skip to content

Commit

Permalink
fix: getElements for rfc268 should use getRootElement not context
Browse files Browse the repository at this point in the history
  • Loading branch information
rtablada committed Feb 7, 2019
1 parent b1d3dd8 commit 9393518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions addon-test-support/-private/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ if (require.has('ember-test-helpers/wait')) {
export function getContext(...args) {
return helpers.getContext(...args);
}
export function getRootElement(...args) {
return helpers.getRootElement(...args);
}
export function visit(...args) {
return helpers.visit(...args);
}
Expand Down
4 changes: 2 additions & 2 deletions addon-test-support/-private/execution_context/rfc268.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getRoot
} from '../helpers';
import {
getContext,
getRootElement,
visit,
click,
fillIn,
Expand Down Expand Up @@ -171,7 +171,7 @@ ExecutionContext.prototype = {
if (container) {
return $(selector, container);
} else {
return $(selector, getContext().element);
return $(selector, getRootElement());
}
},

Expand Down

0 comments on commit 9393518

Please sign in to comment.