From 858436b17c78ff622e6d6bcc7586672cb0e0fcca Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 22 Feb 2021 15:27:01 +0100 Subject: [PATCH] DEV: Fix group-index-test under Ember CLI (#12153) `:nth()` and `:first` are jQuery-only selectors and fail when used with `querySelector`/`querySelectorAll`. --- .../discourse/tests/acceptance/group-index-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 1c2872c52f3..f9a6ef32423 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"); });