mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:37:26 +08:00
This commit removes the legacy widget rendering system from the Discourse codebase. See the topics below for more information: - https://meta.discourse.org/t/upcoming-eol-for-the-widget-rendering-system/375332 - https://meta.discourse.org/t/upcoming-post-stream-changes-how-to-prepare-themes-and-plugins/372063
25 lines
770 B
JavaScript
Vendored
25 lines
770 B
JavaScript
Vendored
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
import ReactionsTopics from "../fixtures/reactions-topic-fixtures";
|
|
|
|
acceptance(`Discourse Reactions - Disabled`, function (needs) {
|
|
needs.user();
|
|
|
|
needs.settings({
|
|
discourse_reactions_enabled: false,
|
|
});
|
|
|
|
needs.pretender((server, helper) => {
|
|
const topicPath = "/t/374.json";
|
|
server.get(topicPath, () => helper.response(ReactionsTopics[topicPath]));
|
|
});
|
|
|
|
test("Does not show reactions controls", async function (assert) {
|
|
await visit("/t/topic_with_reactions_and_likes/374");
|
|
|
|
assert
|
|
.dom(".discourse-reactions-actions")
|
|
.doesNotExist("reactions controls are not shown");
|
|
});
|
|
});
|