DEV: attempts to make last spec non flakey (#25962)
This commit is contained in:
parent
7043512b8d
commit
11400bca1a
|
@ -23,6 +23,7 @@ RSpec.describe "Update last read", type: :system do
|
||||||
chat_page.visit_channel(channel_1)
|
chat_page.visit_channel(channel_1)
|
||||||
|
|
||||||
try_until_success do
|
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)")
|
page.execute_script("document.querySelector('.chat-messages-scroll').scrollTo(0, 0)")
|
||||||
expect(membership.reload.last_read_message_id).to eq(last_message.id)
|
expect(membership.reload.last_read_message_id).to eq(last_message.id)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue