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:
Joffrey JAFFEUX
2024-02-23 14:23:17 +01:00
committed by GitHub
parent 28fc4010b0
commit 9e08b45f9b
5 changed files with 29 additions and 13 deletions

View File

@ -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