mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: A pmOnly tag should link to messages (#8361)
isPrivateMessages represents that the tag list is shown in the context of private messages and pmOnly represents that the tag is used only in private messages.
This commit is contained in:
@@ -25,7 +25,10 @@ QUnit.test("list the tags in groups", async assert => {
|
||||
200,
|
||||
{ "Content-Type": "application/json" },
|
||||
{
|
||||
tags: [{ id: "planned", text: "planned", count: 7, pm_count: 0 }],
|
||||
tags: [
|
||||
{ id: "planned", text: "planned", count: 7, pm_count: 0 },
|
||||
{ id: "private", text: "private", count: 0, pm_count: 7 }
|
||||
],
|
||||
extras: {
|
||||
tag_groups: [
|
||||
{
|
||||
@@ -91,6 +94,11 @@ QUnit.test("list the tags in groups", async assert => {
|
||||
["/tags/focus", "/tags/escort"],
|
||||
"always uses lowercase URLs for mixed case tags"
|
||||
);
|
||||
assert.equal(
|
||||
$("a[data-tag-name='private']").attr("href"),
|
||||
"/u/eviltrout/messages/tags/private",
|
||||
"links to private messages"
|
||||
);
|
||||
});
|
||||
|
||||
test("new topic button is not available for staff-only tags", async assert => {
|
||||
|
||||
Reference in New Issue
Block a user