DEV: Convert all uses of exists to qunit-dom (#29667)

This commit is contained in:
Jarek Radosz
2024-11-10 01:30:33 +01:00
committed by GitHub
parent b24c8a41ac
commit de6d575d40
122 changed files with 1285 additions and 1560 deletions

View File

@ -3,11 +3,7 @@ import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import pretender from "discourse/tests/helpers/create-pretender";
import {
count,
createFile,
exists,
} from "discourse/tests/helpers/qunit-helpers";
import { count, createFile } from "discourse/tests/helpers/qunit-helpers";
const fakeUpload = {
type: ".png",
@ -53,7 +49,7 @@ module("Discourse Chat | Component | chat-composer-uploads", function (hooks) {
`);
assert.strictEqual(count(".chat-composer-upload"), 1);
assert.strictEqual(exists(".chat-composer-upload"), true);
assert.dom(".chat-composer-upload").exists();
});
test("upload starts and completes", async function (assert) {