mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:04:42 +08:00
FIX: correctly updates last read on scroll arrow click (#25838)
Prior to this fix the scroll was ignored when clicking the arrow bottom which would prevent the call to update last read. This fix manually calls update last read in this case and adds a test for it.
This commit is contained in:
@ -141,6 +141,7 @@ RSpec.describe "Chat channel", type: :system do
|
||||
|
||||
expect(channel_page).to have_no_loading_skeleton
|
||||
expect(page).to have_css("[data-id='#{unloaded_message.id}']")
|
||||
expect(page).to have_css(".-last-read[data-id='#{unloaded_message.id}']")
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user