DEV: Scope `query` to the testing container (#12152)

DEV: Scope query to the testing container (#12152)

We don’t want it to find QUnit UI elements… This fixes some Ember CLI test failures.

diff --git a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
index 3b43662..81c2a1a 100644
--- a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
+++ b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
@@ -413,7 +413,7 @@ export function queryAll(selector, context) {
 export function query() {
-  return document.querySelector(...arguments);
+  return document.querySelector("#ember-testing").querySelector(...arguments);
 export function invisible(selector) {

GitHub sha: 24f828c4

This commit appears in #12152 which was approved by jjaffeux. It was merged by CvX.