mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Automatically generated by `eslint --fix` to satisfy the updated configuration
27 lines
630 B
JavaScript
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();
|
|
});
|
|
});
|