DEV: wait a bit for chat message to persist (#27830)

Internal ref t/132745
This commit is contained in:
Régis Hanol 2024-07-10 16:11:50 +02:00 committed by GitHub
parent 67c3f29486
commit d2873d9775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -99,7 +99,9 @@ describe "Uploading files in chat messages", type: :system do
expect(channel_page.messages).to have_message(
text: "upload testing\n#{I18n.t("js.chat.uploaded_files", count: 2)}",
persisted: true,
wait: 5,
)
expect(Chat::Message.last.uploads.count).to eq(2)
end