Skip to content

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

DEV: Remove assertion causing test to be flaky (#25069)

Alan Guo Xiang Tanea910e291b61
diff --git a/plugins/chat/spec/system/user_status/sidebar_spec.rb b/plugins/chat/spec/system/user_status/sidebar_spec.rb
index 355de88140c..75971b4d731 100644
--- a/plugins/chat/spec/system/user_status/sidebar_spec.rb
+++ b/plugins/chat/spec/system/user_status/sidebar_spec.rb
@@ -25,10 +25,10 @@ RSpec.describe "User status | sidebar", type: :system do
context "when changing status" do
it "updates status" do
visit("/")
+
current_user.set_status!("offline", "tooth")
- expect(page).to have_css('.user-status-message .emoji[alt="tooth"]')
- expect(find(".user-status-message .emoji")["src"]).to include("tooth")
+ expect(page).to have_css('.user-status-message img.emoji[alt="tooth"]')
end
end