diff --git a/addon-test-support/-private/compatibility.js b/addon-test-support/-private/compatibility.js index c47a92d5..4a221097 100644 --- a/addon-test-support/-private/compatibility.js +++ b/addon-test-support/-private/compatibility.js @@ -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); } diff --git a/addon-test-support/-private/execution_context/rfc268.js b/addon-test-support/-private/execution_context/rfc268.js index 70c7e57c..77dffd4b 100644 --- a/addon-test-support/-private/execution_context/rfc268.js +++ b/addon-test-support/-private/execution_context/rfc268.js @@ -7,7 +7,7 @@ import { getRoot } from '../helpers'; import { - getContext, + getRootElement, visit, click, fillIn, @@ -171,7 +171,7 @@ ExecutionContext.prototype = { if (container) { return $(selector, container); } else { - return $(selector, getContext().element); + return $(selector, getRootElement()); } },