DEV: Rename method PageObjects::Pages::Chat (#22583)

`has_right_header_href?` is a little verbose and `has_header_href?` has
the same meaning.
This commit is contained in:
Alan Guo Xiang Tan 2023-07-13 13:00:49 +08:00 committed by GitHub
parent 6abec9335f
commit f933c9fcd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ RSpec.describe "Navigation", type: :system do
sidebar_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_header

View File

@ -21,7 +21,7 @@ module PageObjects
find(".chat-header-icon").click
end
def has_right_header_href?(href)
def has_header_href?(href)
find(".chat-header-icon").has_link?(href: href)
end