Revert "DEV: rework the chat-live-pane" (#20510)

This reverts commit 67c0498f6475f56472308d25441ea2a817dd1891.
This commit is contained in:
Joffrey JAFFEUX
2023-03-02 16:59:11 +01:00
committed by GitHub
parent e52bbc1230
commit 31480bde92
118 changed files with 2329 additions and 2590 deletions

View File

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