UX: improves search of message creator

- correctly show unread indicator
- handles disabled user correctly
- do not show new-group-chat when filtering
This commit is contained in:
Joffrey JAFFEUX
2023-11-13 22:03:47 +01:00
committed by GitHub
parent a814348176
commit a0769f6f43
7 changed files with 78 additions and 17 deletions

View File

@ -20,6 +20,14 @@ RSpec.describe "Flag message", type: :system do
expect(chat_page.message_creator).to be_listing(channel_1)
end
it "doesn’t show create group option when filtered" do
visit("/")
chat_page.open_new_message
chat_page.message_creator.filter("x")
expect(chat_page).to have_no_css("#new-group-chat")
end
it "can filter channels" do
channel_1 = Fabricate(:chat_channel)
channel_2 = Fabricate(:chat_channel)