A platform for community discussion. Free, open, simple.
DEV: more resilient scroll to bottom spec (#21467)
Joffrey JAFFEUX7a84fc3d9dd9
diff --git a/plugins/chat/spec/system/navigating_to_message_spec.rb b/plugins/chat/spec/system/navigating_to_message_spec.rbindex c3a3899eb43..c8a40988e89 100644--- a/plugins/chat/spec/system/navigating_to_message_spec.rb+++ b/plugins/chat/spec/system/navigating_to_message_spec.rb@@ -62,7 +62,15 @@ RSpec.describe "Navigating to message", type: :system, js: true dochat_page.visit_channel(channel_1)click_link(link)++ expect(page).to have_css(+ ".chat-message-container.highlighted[data-id='#{first_message.id}']",+ )+click_button(class: "chat-scroll-to-bottom")++ expect(page).to have_content(link)+click_link(link)expect(page).to have_css(