DEV: Reduce jQuery usage in acceptance tests (#17406)

This commit is contained in:
Jarek Radosz
2022-07-10 10:52:02 +02:00
committed by GitHub
parent 06ae9229e8
commit 0f01cc7df2
35 changed files with 419 additions and 425 deletions

View File

@@ -1,7 +1,7 @@
import {
acceptance,
exists,
queryAll,
query,
} from "discourse/tests/helpers/qunit-helpers";
import I18n from "I18n";
import { test } from "qunit";
@@ -23,7 +23,7 @@ acceptance("Personal Message", function (needs) {
await visit("/t/pm-for-testing/12");
assert.strictEqual(
queryAll("#suggested-topics .suggested-topics-title").text().trim(),
query("#suggested-topics .suggested-topics-title").innerText.trim(),
I18n.t("suggested_topics.pm_title")
);
});