mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:33:51 +08:00
UX: Show topic map in topics without replies by default (#28468)
This commit is contained in:
parent
5eca77dd70
commit
5090a56aa2
|
@ -2991,7 +2991,7 @@ uncategorized:
|
|||
|
||||
show_topic_map_in_topics_without_replies:
|
||||
client: true
|
||||
default: false
|
||||
default: true
|
||||
|
||||
user_preferences:
|
||||
default_email_digest_frequency:
|
||||
|
|
|
@ -20,8 +20,7 @@ describe "Topic Map", type: :system do
|
|||
sign_in(user)
|
||||
topic_page.visit_topic(topic)
|
||||
|
||||
# topic map only appears after at least 1 reply
|
||||
expect(topic_page).to have_no_topic_map
|
||||
expect(topic_page).to have_topic_map
|
||||
Fabricate(:post, topic: topic, created_at: 2.day.ago)
|
||||
Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 3)
|
||||
2.times { Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 1) }
|
||||
|
|
Loading…
Reference in New Issue
Block a user