From 9393518c733dc98147ec7bc6c34a10421df0fa6b Mon Sep 17 00:00:00 2001 From: Ryan Tablada Date: Thu, 7 Feb 2019 12:58:16 -0600 Subject: [PATCH] fix: getElements for rfc268 should use getRootElement not context --- addon-test-support/-private/compatibility.js | 3 +++ addon-test-support/-private/execution_context/rfc268.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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()); } },