A platform for community discussion. Free, open, simple.
DEV: correctly check for latest (#26603)
Joffrey JAFFEUXaf7d44971d63
diff --git a/plugins/chat/spec/system/navigation_spec.rb b/plugins/chat/spec/system/navigation_spec.rbindex 22104c3a79b..17458ac4e50 100644--- a/plugins/chat/spec/system/navigation_spec.rb+++ b/plugins/chat/spec/system/navigation_spec.rb@@ -152,9 +152,7 @@ RSpec.describe "Navigation", type: :system dochat_page.openchat_page.minimize_full_page- expect(page).to have_current_path(- chat.channel_path(category_channel.slug, category_channel.id),- )+ expect(page).to have_current_path("/latest")endenddiff --git a/plugins/chat/spec/system/page_objects/chat/chat.rb b/plugins/chat/spec/system/page_objects/chat/chat.rbindex b42019daab6..ffab14c1575 100644--- a/plugins/chat/spec/system/page_objects/chat/chat.rb+++ b/plugins/chat/spec/system/page_objects/chat/chat.rb@@ -35,8 +35,9 @@ module PageObjectsfind(".chat-header-icon").has_link?(href: href)end- def open+ def open(with_preloaded_channels: true)visit("/chat")+ has_finished_loading?(with_preloaded_channels: with_preloaded_channels)enddef open_new_message(ensure_open: true)