mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
DEV: Remove yet another jQ use in tests (#17628)
This commit is contained in:
parent
b179fb98b1
commit
10fa1cafb1
@ -175,9 +175,9 @@ acceptance("User Notifications", function (needs) {
|
||||
|
||||
assert.strictEqual(count("#quick-access-notifications li"), 8);
|
||||
const texts = [];
|
||||
queryAll("#quick-access-notifications li").each((_, el) =>
|
||||
texts.push(el.innerText.trim())
|
||||
);
|
||||
[...queryAll("#quick-access-notifications li")].forEach((element) => {
|
||||
texts.push(element.innerText.trim());
|
||||
});
|
||||
assert.deepEqual(texts, [
|
||||
"foo First notification",
|
||||
"foo Third notification",
|
||||
|
Loading…
Reference in New Issue
Block a user