mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: correctly resets editing state when done (#23209)
Prior to this fix, attempting to reply to a recently edited message would show the edit icon instead of the reply icon.
This commit is contained in:
@ -44,4 +44,16 @@ RSpec.describe "Edited message", type: :system do
|
||||
expect(page).to have_css(".cooked-date")
|
||||
end
|
||||
end
|
||||
|
||||
context "when replying to and edited message" do
|
||||
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1, user: current_user) }
|
||||
|
||||
it "shows the correct reply indicator" do
|
||||
chat_page.visit_channel(channel_1)
|
||||
channel_page.edit_message(message_1, message_1.message + "a")
|
||||
channel_page.reply_to(message_1)
|
||||
|
||||
expect(channel_page.composer.message_details).to be_replying_to(message_1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user