mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:27:56 +08:00
UX: deletes a message when editing to blank (#21785)
Editing a message to an empty string and sending it, will delete it. This commit also refactors a lot of channel/thread composer shortcuts specs. --- This commit also includes various spec fixes which have been flakey while finishing this pull request.
This commit is contained in:
@ -181,8 +181,7 @@ RSpec.describe "Quoting chat message transcripts", type: :system, js: true do
|
||||
it "first navigates to the channel's category before opening the topic composer with the quote prefilled",
|
||||
mobile: true do
|
||||
chat_page.visit_channel(chat_channel_1)
|
||||
|
||||
chat_channel_page.click_message_action_mobile(message_1, "select")
|
||||
chat_channel_page.select_message(message_1)
|
||||
click_selection_button("quote")
|
||||
|
||||
expect(topic_page).to have_expanded_composer
|
||||
|
Reference in New Issue
Block a user