From 5abe98afb5c4e21d4f89a3e6b50bf7b3494cb778 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 29 May 2023 23:21:10 +0200 Subject: [PATCH] DEV: faster browse page spec (#21814) --- plugins/chat/spec/system/page_objects/chat/browse_page.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/chat/spec/system/page_objects/chat/browse_page.rb b/plugins/chat/spec/system/page_objects/chat/browse_page.rb index 1f8298d9a42..eaff9fa1bf9 100644 --- a/plugins/chat/spec/system/page_objects/chat/browse_page.rb +++ b/plugins/chat/spec/system/page_objects/chat/browse_page.rb @@ -8,13 +8,13 @@ module PageObjects end def has_finished_loading? - component.has_css?(".loading-container .spinner") + component.has_css?(".loading-container .spinner", wait: 0) component.has_no_css?(".loading-container .spinner") end def search(query) component.find(".dc-filter-input").fill_in(with: query) - component.has_css?(".loading-container .spinner") + component.has_css?(".loading-container .spinner", wait: 0) component.has_no_css?(".loading-container .spinner") end