mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Use the new hasHtml
/includesHtml
from qunit-dom (#29680)
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 { query } from "discourse/tests/helpers/qunit-helpers";
|
||||
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
|
||||
|
||||
module("Discourse Chat | Component | chat-thread-header", function (hooks) {
|
||||
@ -17,10 +16,8 @@ module("Discourse Chat | Component | chat-thread-header", function (hooks) {
|
||||
<Chat::Thread::Header @thread={{this.thread}} @channel={{this.thread.channel}} />
|
||||
`);
|
||||
|
||||
assert.ok(
|
||||
query(".c-navbar__title")
|
||||
.innerHTML.trim()
|
||||
.includes("<style>body { background: red;}</style>")
|
||||
);
|
||||
assert
|
||||
.dom(".c-navbar__title")
|
||||
.includesHtml("<style>body { background: red;}</style>");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user