UX: chat channel title links to channel settings (#25785)
This commit is contained in:
parent
0f5d5403ea
commit
1d4ef460ac
|
@ -4,7 +4,7 @@ import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-ti
|
|||
const ChatNavbarChannelTitle = <template>
|
||||
{{#if @channel}}
|
||||
<LinkTo
|
||||
@route="chat.channel.info.members"
|
||||
@route="chat.channel.info.settings"
|
||||
@models={{@channel.routeModels}}
|
||||
class="c-navbar__channel-title"
|
||||
>
|
||||
|
|
|
@ -18,13 +18,13 @@ RSpec.describe "Drawer", type: :system do
|
|||
end
|
||||
|
||||
context "when clicking channel title" do
|
||||
it "opens channel info page" do
|
||||
it "opens channel settings page" do
|
||||
visit("/")
|
||||
chat_page.open_from_header
|
||||
drawer_page.open_channel(channel)
|
||||
page.find(".c-navbar__channel-title").click
|
||||
|
||||
expect(page).to have_current_path("/chat/c/#{channel.slug}/#{channel.id}/info/members")
|
||||
expect(page).to have_current_path("/chat/c/#{channel.slug}/#{channel.id}/info/settings")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue