Skip to content

A platform for community discussion. Free, open, simple.

DEV: more resilient upload spec (#21462)

Joffrey JAFFEUXdacb605e98c5
diff --git a/plugins/chat/spec/system/uploads_spec.rb b/plugins/chat/spec/system/uploads_spec.rb
index ab9339efbea..0fc904b1fbc 100644
--- a/plugins/chat/spec/system/uploads_spec.rb
+++ b/plugins/chat/spec/system/uploads_spec.rb
@@ -64,10 +64,7 @@ describe "Uploading files in chat messages", type: :system, js: true do
# image processing clientside is slow! here we are waiting for processing
# to complete then the upload to complete as well
- using_wait_time(10) do
- expect(find(".chat-composer-upload")).to have_content("Uploading")
- expect(page).to have_css(".chat-composer-upload .preview .preview-img")
- end
+ expect(page).to have_css(".chat-composer-upload .preview .preview-img", wait: 25)
channel.send_message("upload testing")