Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
17
research/chatwoot/spec/factories/agent_bots.rb
Normal file
17
research/chatwoot/spec/factories/agent_bots.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
FactoryBot.define do
|
||||
factory :agent_bot do
|
||||
name { 'MyString' }
|
||||
description { 'MyString' }
|
||||
outgoing_url { 'localhost' }
|
||||
bot_config { {} }
|
||||
bot_type { 'webhook' }
|
||||
|
||||
trait :skip_validate do
|
||||
to_create { |instance| instance.save(validate: false) }
|
||||
end
|
||||
|
||||
trait :with_avatar do
|
||||
avatar { fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png') }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user