Commit f9a26ae7 authored by Dmitriy Zaporozhets (DZ)'s avatar Dmitriy Zaporozhets (DZ)

Merge branch '336167-adjust-trial-registration-page-heading-for-experiment' into 'master'

Adjust trial registration page heading for experiment

See merge request gitlab-org/gitlab!66207
parents cd617818 0b8356bc
......@@ -5,9 +5,6 @@
= render "layouts/google_tag_manager_body"
- registration_form_content = capture do
%h2.gl-text-center.gl-pb-5.gl-my-0
= _('Start a Free Ultimate Trial')
.signup-page
= render 'devise/shared/signup_box',
url: trial_registrations_path,
......@@ -21,11 +18,18 @@
- experiment(:trial_registration_with_reassurance) do |e|
- e.use do
.col-md-6.offset-md-3
%h2.gl-text-center.gl-pb-5.gl-my-0
= _('Start a Free Ultimate Trial')
= registration_form_content
- e.try do
.col-lg-6.gl-display-none.gl-lg-display-flex.gl-flex-direction-column.gl-justify-content-center.gl-align-items-center
.col-lg-6.gl-display-none.gl-lg-display-flex.gl-flex-direction-column.gl-align-items-center
.gl-w-grid-size-28
= render 'reassurances'
.col-md-6.offset-md-3.offset-lg-0
%h2.gl-lg-display-none.gl-mb-3.gl-mt-0.gl-text-gray-800
= s_('InProductMarketing|Free 30-day trial')
%p.gl-lg-display-none.gl-font-lg.gl-text-gray-800
= s_('InProductMarketing|No credit card required.')
= registration_form_content
......@@ -20,17 +20,17 @@ RSpec.describe 'trial_registrations/new.html.haml' do
context 'when in the control' do
let_it_be(:trial_registration_with_reassurance_variant) { :control }
it 'does not include the reassurance sidebar content' do
is_expected.not_to have_content('No credit card required.')
end
it { is_expected.to have_content('Start a Free Ultimate Trial') }
it { is_expected.not_to have_content('Free 30-day trial') }
it { is_expected.not_to have_content('No credit card required.') }
end
context 'when in the candidate' do
let_it_be(:trial_registration_with_reassurance_variant) { :candidate }
it 'includes the reassurance sidebar content' do
is_expected.to have_content('No credit card required.')
end
it { is_expected.not_to have_content('Start a Free Ultimate Trial') }
it { is_expected.to have_content('Free 30-day trial') }
it { is_expected.to have_content('No credit card required.') }
end
end
end
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