DEV: Fix group-index-test under Ember CLI (#12153)

DEV: Fix group-index-test under Ember CLI (#12153)

:nth() and :first are jQuery-only selectors and fail when used with querySelector/querySelectorAll.

diff --git a/app/assets/javascripts/discourse/tests/acceptance/group-index-test.js b/app/assets/javascripts/discourse/tests/acceptance/group-index-test.js
index 1c2872c..f9a6ef3 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/group-index-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/group-index-test.js
@@ -75,10 +75,10 @@ acceptance("Group Members", function (needs) {
     assert.ok(count("button.bulk-select") > 0);
     await click("button.bulk-select");
 
-    await click("input.bulk-select:nth(0)");
-    await click("input.bulk-select:nth(1)");
+    await click(queryAll("input.bulk-select")[0]);
+    await click(queryAll("input.bulk-select")[1]);
 
-    const memberDropdown = selectKit(".group-member-dropdown:first");
+    const memberDropdown = selectKit(".group-member-dropdown");
     await memberDropdown.expand();
     await memberDropdown.selectRowByValue("makeOwners");
   });

GitHub sha: 858436b1

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