From 2c295f76fe525ef4c69ab50f2d4b4672fc84b2b0 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 23 Dec 2022 01:34:25 +0100 Subject: [PATCH] FIX: increment wait to prevent a specific flakey spec (#19599) I could repro the same failure by doing: `page.driver.browser.network_conditions = { offline: false, latency: 3000, throughput: 0 }` Wait shouldn't be needed as we wait for selector, but I couldn't find a better solution on this case for now. --- plugins/chat/spec/system/channel_members_page_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/spec/system/channel_members_page_spec.rb b/plugins/chat/spec/system/channel_members_page_spec.rb index a8325694d2..166c45612c 100644 --- a/plugins/chat/spec/system/channel_members_page_spec.rb +++ b/plugins/chat/spec/system/channel_members_page_spec.rb @@ -50,7 +50,7 @@ RSpec.describe "Channel - Info - Members page", type: :system, js: true do scroll_to(find(".channel-members-view__list-item:nth-child(50)")) - 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: 5) scroll_to(find(".channel-members-view__list-item:nth-child(100)"))