mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 13:25:50 +08:00
DEV: Convert assert.true(exists())
to qunit-dom (#29638)
This commit is contained in:
@ -3,7 +3,7 @@ import { click, 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, visible } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { visible } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
module("Discourse Chat | Component | collapser", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
@ -13,7 +13,7 @@ module("Discourse Chat | Component | collapser", function (hooks) {
|
||||
|
||||
await render(hbs`<Collapser @header={{this.header}} />`);
|
||||
|
||||
assert.true(exists(".cat"));
|
||||
assert.dom(".cat").exists();
|
||||
});
|
||||
|
||||
test("collapses and expands yielded body", async function (assert) {
|
||||
|
Reference in New Issue
Block a user