DEV: Remove yet another jQ use in tests (#17628)

This commit is contained in:
Jarek Radosz 2022-07-25 02:32:04 +02:00 committed by GitHub
parent b179fb98b1
commit 10fa1cafb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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