From b4adb806e572dfb8244b02d1a8331e4f533c1118 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 3 Jan 2023 17:14:02 +0100 Subject: [PATCH] DEV: slightly increase wait to avoid flakey tests (#19695) --- plugins/chat/spec/system/jit_messages_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/chat/spec/system/jit_messages_spec.rb b/plugins/chat/spec/system/jit_messages_spec.rb index 0aaa4b16806..3a62125ae77 100644 --- a/plugins/chat/spec/system/jit_messages_spec.rb +++ b/plugins/chat/spec/system/jit_messages_spec.rb @@ -23,6 +23,7 @@ RSpec.describe "JIT messages", type: :system, js: true do expect(page).to have_content( I18n.t("js.chat.mention_warning.without_membership.one", username: other_user.username), + wait: 5, ) end end @@ -44,7 +45,7 @@ RSpec.describe "JIT messages", type: :system, js: true do expect(page).to have_content( I18n.t("js.chat.mention_warning.cannot_see.one", username: other_user.username), - ) + wait: 5, end end @@ -60,6 +61,7 @@ RSpec.describe "JIT messages", type: :system, js: true do expect(page).to have_content( I18n.t("js.chat.mention_warning.group_mentions_disabled.one", group_name: group_1.name), + wait: 5, ) end end