Skip to content

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

DEV: more resilient spec (#21436)

Joffrey JAFFEUX24cc3ac7dc38
diff --git a/plugins/chat/spec/system/channel_members_page_spec.rb b/plugins/chat/spec/system/channel_members_page_spec.rb
index f9d0b8675fd..e31f4ed8c02 100644
--- a/plugins/chat/spec/system/channel_members_page_spec.rb
+++ b/plugins/chat/spec/system/channel_members_page_spec.rb
@@ -44,15 +44,15 @@ RSpec.describe "Channel - Info - Members page", type: :system, js: true do
chat_page.visit_channel_members(channel_1)
- expect(page).to have_selector(".channel-members-view__list-item", count: 50)
+ expect(page).to have_selector(".channel-members-view__list-item", count: 50, wait: 15)
scroll_to(find(".channel-members-view__list-item:nth-child(50)"))
- expect(page).to have_selector(".channel-members-view__list-item", count: 100, wait: 5)
+ expect(page).to have_selector(".channel-members-view__list-item", count: 100, wait: 15)
scroll_to(find(".channel-members-view__list-item:nth-child(100)"))
- expect(page).to have_selector(".channel-members-view__list-item", count: 100)
+ expect(page).to have_selector(".channel-members-view__list-item", count: 100, wait: 15)
end
context "with filter" do