mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 08:55:46 +08: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);
|
assert.strictEqual(count("#quick-access-notifications li"), 8);
|
||||||
const texts = [];
|
const texts = [];
|
||||||
queryAll("#quick-access-notifications li").each((_, el) =>
|
[...queryAll("#quick-access-notifications li")].forEach((element) => {
|
||||||
texts.push(el.innerText.trim())
|
texts.push(element.innerText.trim());
|
||||||
);
|
});
|
||||||
assert.deepEqual(texts, [
|
assert.deepEqual(texts, [
|
||||||
"foo First notification",
|
"foo First notification",
|
||||||
"foo Third notification",
|
"foo Third notification",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user