Commit 32625cc9 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'ag/ci-minutes-redirect' into 'master'

Add explicit redirect for CI Minutes purchase

See merge request gitlab-org/gitlab!67862
parents 0dd2dcdc bd66f71b
......@@ -18,7 +18,7 @@ module SubscriptionsHelper
def buy_minutes_addon_data(group)
{
redirect_after_success: group_usage_quotas_path(group, purchased_product: _('CI minutes'))
redirect_after_success: group_usage_quotas_path(group, anchor: 'pipelines-quota-tab', purchased_product: _('CI minutes'))
}.merge(addon_data(group))
end
......
......@@ -165,6 +165,6 @@ RSpec.describe SubscriptionsHelper do
it { is_expected.to include(namespace_id: group.id.to_s) }
it { is_expected.to include(source: 'some_source') }
it { is_expected.to include(group_data: %Q{[{"id":#{group.id},"name":"My Namespace","users":1,"guests":0}]}) }
it { is_expected.to include(redirect_after_success: group_usage_quotas_path(group, purchased_product: 'CI minutes')) }
it { is_expected.to include(redirect_after_success: group_usage_quotas_path(group, anchor: 'pipelines-quota-tab', purchased_product: 'CI minutes')) }
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