Commit c1114c94 authored by Alper Akgun's avatar Alper Akgun Committed by Nicolò Maria Mezzopera

Add glm query params to issue weight trial URL

parent e5d7d61b
......@@ -6,7 +6,7 @@
- namespace = @project&.namespace || @group
- if can?(current_user, :admin_namespace, namespace)
- if trial_cta
= link_to s_('Promotions|Try it for free'), new_trial_registration_path, class: 'btn btn-primary issue-weights-trial-cta', target: target_blank ? '_blank' : '_self'
= link_to s_('Promotions|Try it for free'), new_trial_registration_path(glm_source: 'gitlab.com', glm_content: 'discover-issue-weights'), class: 'btn btn-primary issue-weights-trial-cta', target: target_blank ? '_blank' : '_self'
- else
- current_group = @project&.group || @group
= link_to s_('Promotions|Upgrade your plan'), upgrade_plan_path(current_group), class: 'btn btn-primary issue-weights-upgrade-cta', target: target_blank ? '_blank' : '_self'
......
......@@ -372,7 +372,7 @@ RSpec.describe 'Promotions', :js do
find('.btn-link.js-toggle-button.js-weight-sidebar-callout').click
expect(find('.issue-weights-trial-cta')).to have_content 'Try it for free'
expect(page).to have_link 'Try it for free', href: new_trial_registration_path(glm_source: 'gitlab.com', glm_content: 'discover-issue-weights'), class: 'issue-weights-trial-cta'
expect(find('.js-close-callout.js-close-session.tr-issue-weights-not-now-cta')).to have_content 'Not now, thanks!'
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