Commit 1f194e56 authored by Alper Akgun's avatar Alper Akgun

Merge branch '348252-improve-saas-trial-form-by-updating-required-fields-add-state-3' into 'master'

Add state to trial lead submission

See merge request gitlab-org/gitlab!77880
parents fb0a0d47 77dd0530
......@@ -131,7 +131,7 @@ class TrialsController < ApplicationController
def company_params
params.permit(:company_name, :company_size, :first_name, :last_name, :phone_number,
:country, :glm_content, :glm_source).merge(extra_params)
:country, :state, :glm_content, :glm_source).merge(extra_params)
end
def extra_params
......
......@@ -184,7 +184,8 @@ RSpec.describe TrialsController, :saas do
first_name: user.first_name,
last_name: user.last_name,
phone_number: '1111111111',
country: 'IN',
country: 'US',
state: 'CA',
glm_content: 'free-billing',
glm_source: 'about.gitlab.com'
}
......@@ -209,7 +210,8 @@ RSpec.describe TrialsController, :saas do
first_name: user.first_name,
last_name: user.last_name,
phone_number: '1111111111',
country: 'IN',
country: 'US',
state: 'CA',
glm_content: 'free-billing',
glm_source: 'about.gitlab.com',
work_email: user.email,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment