feat: Add global message search (#1385)
* feat: Search messages by content * Fix search UI * Add specs * chore: Filter search results * Update highlight logic * Rename query to searchTerm Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -85,7 +85,7 @@ RSpec.describe 'Conversations API', type: :request do
|
||||
as: :json
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
response_data = JSON.parse(response.body, symbolize_names: true)[:data]
|
||||
response_data = JSON.parse(response.body, symbolize_names: true)
|
||||
expect(response_data[:meta][:all_count]).to eq(1)
|
||||
expect(response_data[:payload].first[:messages].first[:content]).to eq 'test1'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user