mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 06:18:14 +08:00
FIX: correctly uses request_uri to generate load_more_url (#19680)
Before this change we were generating an incorrect absolute URL: `https://chat/api/channels...`
This commit is contained in:
@ -134,6 +134,17 @@ RSpec.describe "Browse page", type: :system, js: true do
|
||||
expect(browse_view).to have_content(category_channel_4.name)
|
||||
end
|
||||
|
||||
context "when loading more" do
|
||||
before { 25.times { Fabricate(:chat_channel, status: :open) } }
|
||||
|
||||
it "works" do
|
||||
visit("/chat/browse/all")
|
||||
scroll_to(find(".chat-channel-card:last-child"))
|
||||
|
||||
expect(page).to have_selector(".chat-channel-card", count: 29)
|
||||
end
|
||||
end
|
||||
|
||||
include_examples "never visible channels" do
|
||||
before { visit("/chat/browse/all") }
|
||||
end
|
||||
|
Reference in New Issue
Block a user