Commit 9ec47e24 authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'ag/zuora_with_token_intro_ff' into 'master'

Introduce FF to validate payment method via API

See merge request gitlab-org/gitlab!84292
parents ebcc6a2e 2a2f934e
---
name: use_api_for_payment_validation
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/84292
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/357282
milestone: '14.10'
type: development
group: group::purchase
default_enabled: false
...@@ -14,6 +14,7 @@ module EE ...@@ -14,6 +14,7 @@ module EE
push_frontend_feature_flag(:secure_vulnerability_training, project, default_enabled: :yaml) push_frontend_feature_flag(:secure_vulnerability_training, project, default_enabled: :yaml)
push_frontend_feature_flag(:vulnerability_report_pagination, current_user, default_enabled: :yaml) push_frontend_feature_flag(:vulnerability_report_pagination, current_user, default_enabled: :yaml)
push_frontend_feature_flag(:vulnerability_report_page_size_selector, default_enabled: :yaml) push_frontend_feature_flag(:vulnerability_report_page_size_selector, default_enabled: :yaml)
push_frontend_feature_flag(:use_api_for_payment_validation, project, default_enabled: :yaml)
end end
feature_category :license_compliance, [:licenses] feature_category :license_compliance, [:licenses]
......
...@@ -332,6 +332,7 @@ RSpec.describe 'Pipeline', :js do ...@@ -332,6 +332,7 @@ RSpec.describe 'Pipeline', :js do
before do before do
allow(Gitlab).to receive(:com?) { true } allow(Gitlab).to receive(:com?) { true }
stub_feature_flags(account_verification_payment_form_refresh: false)
create(:gitlab_subscription, :active_trial, namespace: namespace, hosted_plan: ultimate_plan) create(:gitlab_subscription, :active_trial, namespace: namespace, hosted_plan: ultimate_plan)
end end
...@@ -349,6 +350,14 @@ RSpec.describe 'Pipeline', :js do ...@@ -349,6 +350,14 @@ RSpec.describe 'Pipeline', :js do
visit current_path visit current_path
expect(page).not_to have_selector("#credit-card-verification-modal") expect(page).not_to have_selector("#credit-card-verification-modal")
end end
context 'with payment validation via api feature flag' do
it 'pushes use_api_for_payment_validation feature flag' do
visit project_pipeline_validate_account_path(project, pipeline)
expect(page).to have_pushed_frontend_feature_flags(useApiForPaymentValidation: true)
end
end
end end
private private
......
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