import componentTest, { setupRenderingTest, } from "discourse/tests/helpers/component-test"; import { click } from "@ember/test-helpers"; import hbs from "htmlbars-inline-precompile"; import { exists, query, visible } from "discourse/tests/helpers/qunit-helpers"; import { module } from "qunit"; import { htmlSafe } from "@ember/template"; module("Discourse Chat | Component | collapser", function (hooks) { setupRenderingTest(hooks); componentTest("renders header", { template: hbs`{{collapser header=header}}`, beforeEach() { this.set("header", htmlSafe("