Skip to content

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

FIX: fix scroll more chat spec (#35543)

Joffrey JAFFEUX818ba9c94117
diff --git a/plugins/chat/spec/system/chat_channel_spec.rb b/plugins/chat/spec/system/chat_channel_spec.rb
index fed30f5d874..96fc62ee581 100644
--- a/plugins/chat/spec/system/chat_channel_spec.rb
+++ b/plugins/chat/spec/system/chat_channel_spec.rb
@@ -137,7 +137,7 @@ RSpec.describe "Chat channel", type: :system do
expect(channel_page).to have_no_loading_skeleton
expect(page).to have_no_css("[data-id='#{unloaded_message.id}']")
- find(".chat-scroll-to-bottom__button.visible").click
+ find(".chat-channel:not(.loading) .chat-scroll-to-bottom__button.visible").click
expect(channel_page).to have_no_loading_skeleton
expect(page).to have_css("[data-id='#{unloaded_message.id}']")