FIX: set channels tab as default on mobile chat footer (#25296)

This change moves the "Channels" tab to first position in the chat footer nav, and loads it as the default page when opening chat for the first time on mobile.
This commit is contained in:
David Battersby
2024-01-17 17:12:55 +08:00
committed by GitHub
parent c91bd3ca07
commit 6876c52857
7 changed files with 22 additions and 26 deletions

View File

@ -29,11 +29,11 @@ RSpec.describe "Chat footer on mobile", type: :system, mobile: true do
expect(page).to have_no_css(".c-footer")
end
it "redirects the user to the direct messages tab" do
it "redirects the user to the channels tab" do
visit("/")
chat_page.open_from_header
expect(page).to have_current_path("/chat/direct-messages")
expect(page).to have_current_path("/chat/channels")
end
it "shows threads tab when user has threads" do