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:
Joffrey JAFFEUX
2023-05-30 18:15:34 +02:00
committed by GitHub
parent c3d51e9c0a
commit 67102f7e4e
29 changed files with 347 additions and 299 deletions

View File

@ -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