Commit b5b56663 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'aa-add-glm-to-issue-weight-params' into 'master'

Add glm query params  to issue weight trial URL

See merge request gitlab-org/gitlab!34358
parents 33ddf71a c1114c94
......@@ -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