Added browser tests for customer chat.
This commit is contained in:
parent
5940bc8975
commit
36ed006f29
2 changed files with 18 additions and 1 deletions
17
lib/sessions/event/chat_session_leave_temporary.rb
Normal file
17
lib/sessions/event/chat_session_leave_temporary.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class Sessions::Event::ChatSessionLeaveTemporary < Sessions::Event::ChatBase
|
||||
|
||||
def run
|
||||
return if !check_chat_session_exists
|
||||
chat_session = current_chat_session
|
||||
|
||||
Delayed::Job.enqueue(
|
||||
Observer::Chat::Leave::BackgroundJob.new(chat_session.id, @client_id, @session),
|
||||
{
|
||||
run_at: Time.zone.now + 0.5.minutes
|
||||
}
|
||||
)
|
||||
|
||||
false
|
||||
end
|
||||
|
||||
end
|
|
@ -8,6 +8,7 @@ if [ "$LEVEL" == '1' ]; then
|
|||
rm test/browser/agent_user_profile_test.rb
|
||||
rm test/browser/agent_organization_profile_test.rb
|
||||
rm test/browser/agent_ticket_*.rb
|
||||
rm test/browser/chat_test.rb
|
||||
rm test/browser/prefereces_test.rb
|
||||
rm test/browser/setting_test.rb
|
||||
|
||||
|
@ -40,7 +41,6 @@ elif [ "$LEVEL" == '3' ]; then
|
|||
rm test/browser/agent_user_manage_test.rb
|
||||
rm test/browser/agent_ticket_*.rb
|
||||
rm test/browser/auth_test.rb
|
||||
rm test/browser/chat_test.rb
|
||||
rm test/browser/customer_ticket_create_test.rb
|
||||
rm test/browser/maintenance_message_test.rb
|
||||
rm test/browser/manage_test.rb
|
||||
|
|
Loading…
Reference in a new issue