Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix two more chat spec flakes (#39760)

Jarek Radosz37fc807f5415
diff --git a/plugins/chat/spec/system/channel_members_page_spec.rb b/plugins/chat/spec/system/channel_members_page_spec.rb
index 1e6ddca9911..5fc9c4882aa 100644
--- a/plugins/chat/spec/system/channel_members_page_spec.rb
+++ b/plugins/chat/spec/system/channel_members_page_spec.rb
@@ -75,6 +75,7 @@ RSpec.describe "Channel - Info - Members page" do
current_user.set_status!("walking the dog", "dog")
chat_page.visit_channel_members(channel_1)
+ find(".c-channel-members__filter").fill_in(with: current_user.username)
expect(page).to have_selector(
".-member .user-status-message img[alt='#{current_user.user_status.emoji}']",
diff --git a/plugins/chat/spec/system/thread_list/full_page_spec.rb b/plugins/chat/spec/system/thread_list/full_page_spec.rb
index 48736078fee..8b56ba86724 100644
--- a/plugins/chat/spec/system/thread_list/full_page_spec.rb
+++ b/plugins/chat/spec/system/thread_list/full_page_spec.rb
@@ -188,6 +188,7 @@ describe "Thread list in side panel | full page" do
trash_message!(thread_1.original_message, user: other_user)
chat_page.visit_threads_list(channel)
+ expect(thread_list_page).to have_loaded
expect(thread_list_page).to have_no_thread(thread_1)
restore_message!(thread_1.original_message, user: other_user)