Commit bd66f71b authored by Angelo Gulina's avatar Angelo Gulina

Add explicit redirect for CI Minutes purchase

parent ef4d93f8
......@@ -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