feat: Add a view for unattended conversations (#5890)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas
2022-11-29 08:18:00 -08:00
committed by GitHub
parent c94ba16565
commit 85b52a1d3f
20 changed files with 174 additions and 32 deletions

View File

@@ -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