mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 08:04:07 +08:00
FIX: going from /categories to /latest on mobile might break infinite scrolling
This commit is contained in:
parent
ba0e322fd0
commit
12bab65167
3 changed files with 11 additions and 2 deletions
|
@ -26,6 +26,13 @@ describe CategoriesController do
|
|||
expect(html.css('body.crawler')).to be_present
|
||||
expect(html.css("a[href=\"/forum/c/#{category.slug}\"]")).to be_present
|
||||
end
|
||||
|
||||
it "properly preloads topic list" do
|
||||
SiteSetting.categories_topics = 5
|
||||
SiteSetting.categories_topics.times { Fabricate(:topic) }
|
||||
get "/categories"
|
||||
expect(response.body).to include(%{"more_topics_url":"/latest"})
|
||||
end
|
||||
end
|
||||
|
||||
context 'extensibility event' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue