feat: Add a view for unattended conversations (#5890)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
c94ba16565
commit
85b52a1d3f
@@ -136,5 +136,15 @@ describe ::ConversationFinder do
|
||||
expect(result[:conversations].length).to be 25
|
||||
end
|
||||
end
|
||||
|
||||
context 'with unattended' do
|
||||
let(:params) { { status: 'open', assignee_type: 'me', conversation_type: 'unattended' } }
|
||||
|
||||
it 'returns unattended conversations' do
|
||||
create_list(:conversation, 25, account: account, inbox: inbox, assignee: user_1)
|
||||
result = conversation_finder.perform
|
||||
expect(result[:conversations].length).to be 25
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user