Chore: Add display name to the user (#1067)
* Chore: Adding browser info to web widget triggered event fixes: #970 * Chore: Rename nickname to display name references: #972 * Chore: Change nickname in code * chore: fix errors * Chore: update nginx config fixes: #1057 * Chore: Fix specs
This commit is contained in:
@@ -32,7 +32,7 @@ RSpec.describe '/api/v1/widget/events', type: :request do
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(Rails.configuration.dispatcher).to have_received(:dispatch)
|
||||
.with(params[:name], anything, contact_inbox: contact_inbox,
|
||||
event_info: { browser_language: nil, widget_language: nil })
|
||||
event_info: { browser_language: nil, widget_language: nil, browser: anything })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,8 +12,8 @@ FactoryBot.define do
|
||||
provider { 'email' }
|
||||
uid { SecureRandom.uuid }
|
||||
name { Faker::Name.name }
|
||||
nickname { Faker::Name.first_name }
|
||||
email { nickname + "@#{SecureRandom.uuid}.com" }
|
||||
display_name { Faker::Name.first_name }
|
||||
email { display_name + "@#{SecureRandom.uuid}.com" }
|
||||
password { 'password' }
|
||||
|
||||
after(:build) do |user, evaluator|
|
||||
|
||||
Reference in New Issue
Block a user