mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Convert assert.true(exists())
to qunit-dom (#29638)
This commit is contained in:
@ -3,7 +3,6 @@ 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 } 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";
|
||||
|
||||
@ -33,6 +32,6 @@ module("Discourse Chat | Component | chat-message-avatar", function (hooks) {
|
||||
|
||||
await render(hbs`<Chat::Message::Avatar @message={{this.message}} />`);
|
||||
|
||||
assert.true(exists('.chat-user-avatar [data-user-card="discobot"]'));
|
||||
assert.dom('.chat-user-avatar [data-user-card="discobot"]').exists();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user