mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Convert assert.true(exists())
to qunit-dom (#29638)
This commit is contained in:
@ -2,7 +2,6 @@ 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 } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
module("Discourse Chat | Component | chat-composer-dropdown", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
@ -13,9 +12,9 @@ module("Discourse Chat | Component | chat-composer-dropdown", function (hooks) {
|
||||
await render(hbs`<ChatComposerDropdown @buttons={{this.buttons}} />`);
|
||||
await click(".chat-composer-dropdown__trigger-btn");
|
||||
|
||||
assert.true(exists(".chat-composer-dropdown__item.foo"));
|
||||
assert.true(
|
||||
exists(".chat-composer-dropdown__action-btn.foo .d-icon-xmark")
|
||||
);
|
||||
assert.dom(".chat-composer-dropdown__item.foo").exists();
|
||||
assert
|
||||
.dom(".chat-composer-dropdown__action-btn.foo .d-icon-xmark")
|
||||
.exists();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user