mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user