mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
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:
parent
24f828c467
commit
858436b17c
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user