Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
18
research/chatwoot/spec/factories/inboxes.rb
Normal file
18
research/chatwoot/spec/factories/inboxes.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :inbox do
|
||||
account
|
||||
channel { FactoryBot.build(:channel_widget, account: account) }
|
||||
name { 'Inbox' }
|
||||
|
||||
after(:create) do |inbox|
|
||||
inbox.channel.save!
|
||||
end
|
||||
|
||||
trait :with_email do
|
||||
channel { FactoryBot.build(:channel_email, account: account) }
|
||||
name { 'Email Inbox' }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user