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

`:nth()` and `:first` are jQuery-only selectors and fail when used with `querySelector`/`querySelectorAll`.
This commit is contained in:
Jarek Radosz 2021-02-22 15:27:01 +01:00 committed by GitHub
parent 24f828c467
commit 858436b17c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
});