Files
David Taylor b3015f51ca DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

27 lines
630 B
JavaScript

import { visit } from "@ember/test-helpers";
import { test } from "qunit";
import {
acceptance,
publishToMessageBus,
} from "discourse/tests/helpers/qunit-helpers";
acceptance("Site Banner", function () {
test("shows and hides correctly", async function (assert) {
await visit("/");
assert.dom("#banner").doesNotExist();
await publishToMessageBus("/site/banner", {
html: "hello world",
key: 12,
url: "/t/12",
});
assert.dom("#banner #banner-content").hasText("hello world");
await publishToMessageBus("/site/banner", null);
assert.dom("#banner").doesNotExist();
});
});