Commit c68e39aa authored by Dallas Reedy's avatar Dallas Reedy Committed by Andrew Fontaine

Add link to the self-managed trial flow from SaaS trial signup

- Track the new link
- Add a couple simple tests

Changelog: added
EE: true
parent 8815c342
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
= render 'devise/shared/sign_in_link' = render 'devise/shared/sign_in_link'
%p.gl-text-center
= s_('InProductMarketing|Want to host GitLab on your servers?')
= link_to s_('InProductMarketing|Start a Self-Managed trial'), 'https://about.gitlab.com/free-trial/#selfmanaged/', data: { track_action: 'click_link', track_label: 'start_self-managed_trial' }
.row .row
- experiment(:trial_registration_with_reassurance, actor: current_user) do |e| - experiment(:trial_registration_with_reassurance, actor: current_user) do |e|
- if e.should_track? - if e.should_track?
...@@ -27,7 +31,7 @@ ...@@ -27,7 +31,7 @@
= registration_form_content = registration_form_content
- e.try do - e.try do
.col-lg-6.gl-display-none.gl-lg-display-flex.gl-flex-direction-column.gl-align-items-center.gl-justify-content-center .col-lg-6.gl-display-none.gl-lg-display-flex.gl-flex-direction-column.gl-align-items-center.gl-justify-content-start
.gl-w-grid-size-28 .gl-w-grid-size-28
= render 'reassurances' = render 'reassurances'
.col-md-6.offset-md-3.offset-lg-0 .col-md-6.offset-md-3.offset-lg-0
......
...@@ -21,18 +21,18 @@ RSpec.describe 'trial_registrations/new.html.haml' do ...@@ -21,18 +21,18 @@ RSpec.describe 'trial_registrations/new.html.haml' do
end end
context 'when in the control' do context 'when in the control' do
it { is_expected.to have_content('Start a Free Ultimate Trial') } 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(s_('InProductMarketing|Free 30-day trial')) }
it { is_expected.not_to have_content('No credit card required.') } it { is_expected.not_to have_content(s_('InProductMarketing|No credit card required.')) }
it { is_expected.not_to have_selector('img[alt$=" logo"]') } it { is_expected.not_to have_selector('img[alt$=" logo"]') }
end end
context 'when in the candidate' do context 'when in the candidate' do
let(:variant) { :candidate } let(:variant) { :candidate }
it { is_expected.not_to have_content('Start a Free Ultimate Trial') } 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(s_('InProductMarketing|Free 30-day trial')) }
it { is_expected.to have_content('No credit card required.') } it { is_expected.to have_content(s_('InProductMarketing|No credit card required.')) }
it { is_expected.to have_selector('img[alt$=" logo"]') } it { is_expected.to have_selector('img[alt$=" logo"]') }
end end
end end
...@@ -55,4 +55,7 @@ RSpec.describe 'trial_registrations/new.html.haml' do ...@@ -55,4 +55,7 @@ RSpec.describe 'trial_registrations/new.html.haml' do
end end
end end
end end
it { is_expected.to have_content(s_('InProductMarketing|Want to host GitLab on your servers?')) }
it { is_expected.to have_link(s_('InProductMarketing|Start a Self-Managed trial'), href: 'https://about.gitlab.com/free-trial/#selfmanaged/') }
end end
...@@ -18468,6 +18468,9 @@ msgstr "" ...@@ -18468,6 +18468,9 @@ msgstr ""
msgid "InProductMarketing|Start a GitLab Ultimate trial today in less than one minute, no credit card required." msgid "InProductMarketing|Start a GitLab Ultimate trial today in less than one minute, no credit card required."
msgstr "" msgstr ""
msgid "InProductMarketing|Start a Self-Managed trial"
msgstr ""
msgid "InProductMarketing|Start a free trial of GitLab Ultimate – no credit card required" msgid "InProductMarketing|Start a free trial of GitLab Ultimate – no credit card required"
msgstr "" msgstr ""
...@@ -18570,6 +18573,9 @@ msgstr "" ...@@ -18570,6 +18573,9 @@ msgstr ""
msgid "InProductMarketing|Very easy" msgid "InProductMarketing|Very easy"
msgstr "" msgstr ""
msgid "InProductMarketing|Want to host GitLab on your servers?"
msgstr ""
msgid "InProductMarketing|We know a thing or two about efficiency and we don't want to keep that to ourselves. Sign up for a free trial of GitLab Ultimate and your teams will be on it from day one." msgid "InProductMarketing|We know a thing or two about efficiency and we don't want to keep that to ourselves. Sign up for a free trial of GitLab Ultimate and your teams will be on it from day one."
msgstr "" msgstr ""
......
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