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:
Robin Ward
2020-11-20 16:48:39 -05:00
parent 60bc38e6a8
commit 3394d994e9
21 changed files with 136 additions and 94 deletions

View File

@@ -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"