DEV: more resilient spec (#21436)

Allows more time for the members to be appended in tests
This commit is contained in:
Joffrey JAFFEUX 2023-05-08 21:10:57 +02:00 committed by GitHub
parent c69c7578f3
commit 24cc3ac7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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