A platform for community discussion. Free, open, simple.
DEV: Rename method PageObjects::Pages::Chat (#22583)
Alan Guo Xiang Tanf933c9fcd9db
diff --git a/plugins/chat/spec/system/navigation_spec.rb b/plugins/chat/spec/system/navigation_spec.rbindex 04b9d10c520..6fa84a9ba38 100644--- a/plugins/chat/spec/system/navigation_spec.rb+++ b/plugins/chat/spec/system/navigation_spec.rb@@ -294,7 +294,7 @@ RSpec.describe "Navigation", type: :system dosidebar_page.open_channel(category_channel_2)find("#site-logo").click- expect(chat_page).to have_right_header_href(chat_channel_path)+ expect(chat_page).to have_header_href(chat_channel_path)chat_page.open_from_headerdiff --git a/plugins/chat/spec/system/page_objects/chat/chat.rb b/plugins/chat/spec/system/page_objects/chat/chat.rbindex ebd2d42f146..9c2289a1dc5 100644--- a/plugins/chat/spec/system/page_objects/chat/chat.rb+++ b/plugins/chat/spec/system/page_objects/chat/chat.rb@@ -21,7 +21,7 @@ module PageObjectsfind(".chat-header-icon").clickend- def has_right_header_href?(href)+ def has_header_href?(href)find(".chat-header-icon").has_link?(href: href)end