mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:16:00 +08:00
UX: enhances chat copy features (#23770)
- Allows to copy quotes from mobile - Allows to copy text of a message from mobile - Allows to select messages by clicking on it when selection has started Note this commit is also now using toasts to show a confirmation of copy, and refactors system specs helpers concerning secondary actions. <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
This commit is contained in:
@ -112,7 +112,7 @@ describe "Uploading files in chat messages", type: :system do
|
||||
|
||||
it "allows deleting uploads" do
|
||||
chat.visit_channel(channel_1)
|
||||
channel_page.open_edit_message(message_2)
|
||||
channel_page.messages.edit(message_2)
|
||||
find(".chat-composer-upload").hover
|
||||
find(".chat-composer-upload__remove-btn").click
|
||||
channel_page.click_send_message
|
||||
@ -122,7 +122,7 @@ describe "Uploading files in chat messages", type: :system do
|
||||
|
||||
it "allows adding more uploads" do
|
||||
chat.visit_channel(channel_1)
|
||||
channel_page.open_edit_message(message_2)
|
||||
channel_page.messages.edit(message_2)
|
||||
|
||||
file_path = file_from_fixtures("logo.png", "images").path
|
||||
attach_file(file_path) do
|
||||
|
Reference in New Issue
Block a user