mirror of
https://github.com/discourse/discourse.git
synced 2025-01-06 13:23:43 +08:00
DEV: waits for mark_read! to be applied (#30444)
This commit is contained in:
parent
96b5c28cf9
commit
ae4a4b7d00
|
@ -137,12 +137,13 @@ RSpec.describe "List channels | Drawer", type: :system do
|
|||
Fabricate(:chat_message, chat_channel: dm_channel_4, user: user_3, use_service: true)
|
||||
dm_channel_4.membership_for(current_user).mark_read!(message.id)
|
||||
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_2, 1)
|
||||
expect(drawer_page).to have_urgent_channel(dm_channel_2)
|
||||
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_4, 2)
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_1, 3)
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_3, 4)
|
||||
try_until_success do
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_2, 1)
|
||||
expect(drawer_page).to have_urgent_channel(dm_channel_2)
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_4, 2)
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_1, 3)
|
||||
expect(drawer_page).to have_channel_at_position(dm_channel_3, 4)
|
||||
end
|
||||
end
|
||||
|
||||
context "with unread threads" do
|
||||
|
|
Loading…
Reference in New Issue
Block a user