mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Tests were using jQuery selectors
For the most part `querySelectorAll` will work with jQuery selectors, but the big exception is `:eq(0)` and similar. Those needed to be replaced.
This commit is contained in:
@@ -72,7 +72,7 @@ componentTest("can add users", {
|
||||
);
|
||||
assert.ok(document.querySelectorAll(".new-user .invalid").length === 1);
|
||||
|
||||
await click(".invite-list .invite-list-user:eq(0) .remove-user");
|
||||
await click(".invite-list .invite-list-user:nth-of-type(1) .remove-user");
|
||||
assert.ok(
|
||||
document.querySelectorAll(".users-list .invite-list-user").length === 0,
|
||||
"removed the user"
|
||||
|
||||
Reference in New Issue
Block a user