DEV: Convert more test assertions to qunit-dom (#29214)

the PR is sponsored by vscode's regex support in find-and-replace 😉
This commit is contained in:
Jarek Radosz
2024-10-15 17:11:20 +02:00
committed by GitHub
parent 387f2c52e6
commit 688f65a39d
115 changed files with 891 additions and 1234 deletions

View File

@ -3,7 +3,7 @@ import { render } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import { exists, query } from "discourse/tests/helpers/qunit-helpers";
import { exists } from "discourse/tests/helpers/qunit-helpers";
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
import ChatMessage from "discourse/plugins/chat/discourse/models/chat-message";
@ -20,7 +20,7 @@ module("Discourse Chat | Component | chat-message-avatar", function (hooks) {
await render(hbs`<Chat::Message::Avatar @message={{this.message}} />`);
assert.strictEqual(query(".chat-emoji-avatar .emoji").title, "heart");
assert.dom(".chat-emoji-avatar .emoji").hasAttribute("title", "heart");
});
test("user", async function (assert) {