mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 07:06:47 +08:00
Revert "DEV: rework the chat-live-pane" (#20510)
This reverts commit 67c0498f6475f56472308d25441ea2a817dd1891.
This commit is contained in:
@ -36,21 +36,12 @@ describe "Uploading files in chat messages", type: :system, js: true do
|
||||
|
||||
it "allows uploading multiple files" do
|
||||
chat.visit_channel(channel_1)
|
||||
|
||||
file_path_1 = file_from_fixtures("logo.png", "images").path
|
||||
attach_file([file_path_1]) do
|
||||
channel.open_action_menu
|
||||
channel.click_action_button("chat-upload-btn")
|
||||
find(".chat-composer-input").click
|
||||
end
|
||||
|
||||
file_path_2 = file_from_fixtures("logo.jpg", "images").path
|
||||
attach_file([file_path_2]) do
|
||||
attach_file([file_path_1, file_path_2]) do
|
||||
channel.open_action_menu
|
||||
channel.click_action_button("chat-upload-btn")
|
||||
find(".chat-composer-input").click
|
||||
end
|
||||
|
||||
expect(page).to have_css(".chat-composer-upload .preview .preview-img", count: 2)
|
||||
channel.send_message("upload testing")
|
||||
|
||||
|
Reference in New Issue
Block a user