diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.hbs
index fcc65c8c996..37763906d32 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.hbs
@@ -3,9 +3,9 @@
{{d-icon this.icon}}
{{this.message.user.username}}
- {{replace-emoji
- this.message.excerpt
- }}
+
+ {{replace-emoji this.message.excerpt}}
+
not marked") }
+
+ it "renders text in the details" do
+ chat.visit_channel(channel_1)
+ channel.reply_to(message_1)
+
+ expect(
+ find(".chat-composer-message-details .chat-reply__excerpt")["innerHTML"].strip,
+ ).to eq("not marked")
+ end
+ end
end
context "when editing a message" do