A platform for community discussion. Free, open, simple.
DEV: prevents flakey spec (#25855)
Joffrey JAFFEUXcb118c979cb1
diff --git a/plugins/chat/spec/system/thread_preview_spec.rb b/plugins/chat/spec/system/thread_preview_spec.rbindex 77a29f61a91..ba1dc95c8ae 100644--- a/plugins/chat/spec/system/thread_preview_spec.rb+++ b/plugins/chat/spec/system/thread_preview_spec.rb@@ -48,6 +48,10 @@ describe "Thread preview", type: :system doendcontext "when the user of the preview has been deleted" do+ fab!(:thread_1_message_1) do+ Fabricate(:chat_message, thread: thread_1, in_reply_to: message_1, use_service: true)+ end+before { thread_1_message_1.user.destroy! }it "shows a deleted user" do