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:
parent
6abec9335f
commit
f933c9fcd9
|
@ -294,7 +294,7 @@ RSpec.describe "Navigation", type: :system do
|
||||||
sidebar_page.open_channel(category_channel_2)
|
sidebar_page.open_channel(category_channel_2)
|
||||||
find("#site-logo").click
|
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
|
chat_page.open_from_header
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ module PageObjects
|
||||||
find(".chat-header-icon").click
|
find(".chat-header-icon").click
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_right_header_href?(href)
|
def has_header_href?(href)
|
||||||
find(".chat-header-icon").has_link?(href: href)
|
find(".chat-header-icon").has_link?(href: href)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue