Skip to content

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

DEV: Fix flaky chat footer specs (#39721)

Jarek Radosz288a14c2011b
diff --git a/plugins/chat/spec/system/chat_footer_spec.rb b/plugins/chat/spec/system/chat_footer_spec.rb
index cfa5d71c080..b412469535d 100644
--- a/plugins/chat/spec/system/chat_footer_spec.rb
+++ b/plugins/chat/spec/system/chat_footer_spec.rb
@@ -115,6 +115,8 @@ RSpec.describe "Mobile Chat footer", mobile: true do
visit("/")
chat_page.open_from_header
+ expect(page).to have_css("#c-footer-channels")
+
Fabricate(
:chat_message_with_service,
chat_channel: channel,
@@ -157,6 +159,7 @@ RSpec.describe "Mobile Chat footer", mobile: true do
visit("/")
chat_page.open_from_header
+ expect(page).to have_css("#c-footer-direct-messages")
expect(page).to have_no_css("#c-footer-direct-messages .c-unread-indicator.-urgent")
Fabricate(