DEV: attempts to make last spec non flakey (#25962)

This commit is contained in:
Joffrey JAFFEUX 2024-02-29 13:15:00 +01:00 committed by GitHub
parent 7043512b8d
commit 11400bca1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ RSpec.describe "Update last read", type: :system do
chat_page.visit_channel(channel_1)
try_until_success do
page.execute_script("document.querySelector('.chat-messages-scroll').scrollTo(0, 1)")
page.execute_script("document.querySelector('.chat-messages-scroll').scrollTo(0, 0)")
expect(membership.reload.last_read_message_id).to eq(last_message.id)
end