UX: reduce bottom topic map threshold, with protections (#29665)

This commit is contained in:
Kris
2024-11-13 07:58:44 -05:00
committed by GitHub
parent 3df3ad6ed6
commit 9a22d7df7b
3 changed files with 20 additions and 5 deletions

View File

@ -21,7 +21,6 @@ describe "Topic Map", type: :system do
topic_page.visit_topic(topic)
expect(topic_page).to have_topic_map
2.times { Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 1) }
page.refresh
expect(topic_page).to have_topic_map
expect(topic_map).to have_no_users
@ -32,6 +31,7 @@ describe "Topic Map", type: :system do
# bottom map, avatars details with post counts
expect(topic_map).to have_no_bottom_map
2.times { Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 1) }
Fabricate(:post, topic: topic, created_at: 2.day.ago)
Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 3)
page.refresh