mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Reduce jQuery usage in acceptance tests (#17406)
This commit is contained in:
@@ -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")
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user