A platform for community discussion. Free, open, simple.
DEV: Avoid waiting full capybara default wait time (#22449)
Alan Guo Xiang Tan9a65c78d8751
diff --git a/plugins/chat/spec/system/navigation_spec.rb b/plugins/chat/spec/system/navigation_spec.rbindex 786363c9c89..4e318044c94 100644--- a/plugins/chat/spec/system/navigation_spec.rb+++ b/plugins/chat/spec/system/navigation_spec.rb@@ -193,7 +193,7 @@ RSpec.describe "Navigation", type: :system doexpect(thread_page).to have_back_link_to_channel(category_channel)thread_page.back_to_previous_routeexpect(page).to have_current_path("#{category_channel.relative_url}")- expect(side_panel_page).not_to be_open+ expect(side_panel_page).to be_closedendendenddiff --git a/plugins/chat/spec/system/page_objects/chat/chat_side_panel.rb b/plugins/chat/spec/system/page_objects/chat/chat_side_panel.rbindex b71c59afa61..dbc041ed097 100644--- a/plugins/chat/spec/system/page_objects/chat/chat_side_panel.rb+++ b/plugins/chat/spec/system/page_objects/chat/chat_side_panel.rb@@ -7,6 +7,10 @@ module PageObjectshas_css?(".chat-side-panel")end+ def closed?+ has_no_css?(".chat-side-panel")+ end+def has_open_thread?(thread = nil)if threadhas_css?(".chat-side-panel .chat-thread[data-id='#{thread.id}']")