Commit dfbbed2b authored by Eugie Limpin's avatar Eugie Limpin Committed by Peter Hegman

Explicitly state that user will not be charged when verifying

Related to the `combined_registration` experiment
parent 5d535993
...@@ -3,14 +3,12 @@ import { GlBreadcrumb, GlButton, GlSafeHtmlDirective as SafeHtml } from '@gitlab ...@@ -3,14 +3,12 @@ import { GlBreadcrumb, GlButton, GlSafeHtmlDirective as SafeHtml } from '@gitlab
import newGroupIllustration from '@gitlab/svgs/dist/illustrations/group-new.svg'; import newGroupIllustration from '@gitlab/svgs/dist/illustrations/group-new.svg';
import CreateGroupDescriptionDetails from '~/pages/groups/new/components/create_group_description_details.vue'; import CreateGroupDescriptionDetails from '~/pages/groups/new/components/create_group_description_details.vue';
import Zuora from 'ee/billings/components/zuora.vue'; import Zuora from 'ee/billings/components/zuora.vue';
import { s__ } from '~/locale'; import {
I18N_FORM_EXPLANATION,
const I18N_SIDE_PANE_TITLE = s__('GroupsNew|Create group'); I18N_FORM_SUBMIT,
const I18N_FORM_TITLE = s__('IdentityVerification|Verify your identity'); I18N_FORM_TITLE,
const I18N_FORM_EXPLANATION = s__( I18N_SIDE_PANE_TITLE,
'IdentityVerification|Before you create your group, we need you to verify your identity with a valid payment method.', } from '../constants';
);
const I18N_FORM_SUBMIT = s__('IdentityVerification|Verify your identity');
export default { export default {
components: { components: {
......
import { s__ } from '~/locale';
export const I18N_SIDE_PANE_TITLE = s__('GroupsNew|Create group');
export const I18N_FORM_TITLE = s__('IdentityVerification|Verify your identity');
export const I18N_FORM_EXPLANATION = s__(
'IdentityVerification|Before you create your group, we need you to verify your identity with a valid payment method. You will not be charged during this step. If we ever need to charge you, we will let you know.',
);
export const I18N_FORM_SUBMIT = s__('IdentityVerification|Verify your identity');
import { GlButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import { mountExtended } from 'helpers/vue_test_utils_helper'; import { mountExtended } from 'helpers/vue_test_utils_helper';
import CreditCardVerification from 'ee/pages/groups/new/components/credit_card_verification.vue'; import CreditCardVerification from 'ee/pages/groups/new/components/credit_card_verification.vue';
import { I18N_FORM_TITLE, I18N_FORM_EXPLANATION } from 'ee/pages/groups/new/constants';
describe('Verification page', () => { describe('Verification page', () => {
let wrapper; let wrapper;
...@@ -27,17 +28,11 @@ describe('Verification page', () => { ...@@ -27,17 +28,11 @@ describe('Verification page', () => {
}); });
it('renders the title', () => { it('renders the title', () => {
expect(wrapper.findByText('Verify your identity').exists()).toBe(true); expect(wrapper.findByText(I18N_FORM_TITLE).exists()).toBe(true);
}); });
it('renders the explanation', () => { it('renders the explanation', () => {
expect( expect(wrapper.findByText(I18N_FORM_EXPLANATION).exists()).toBe(true);
wrapper
.findByText(
'Before you create your group, we need you to verify your identity with a valid payment method.',
)
.exists(),
).toBe(true);
}); });
}); });
......
...@@ -17892,7 +17892,7 @@ msgstr "" ...@@ -17892,7 +17892,7 @@ msgstr ""
msgid "IdentityVerification|Before you create your first project, we need you to verify your identity with a valid payment method. You will not be charged during this step. If we ever need to charge you, we will let you know." msgid "IdentityVerification|Before you create your first project, we need you to verify your identity with a valid payment method. You will not be charged during this step. If we ever need to charge you, we will let you know."
msgstr "" msgstr ""
msgid "IdentityVerification|Before you create your group, we need you to verify your identity with a valid payment method." msgid "IdentityVerification|Before you create your group, we need you to verify your identity with a valid payment method. You will not be charged during this step. If we ever need to charge you, we will let you know."
msgstr "" msgstr ""
msgid "IdentityVerification|Create a project" msgid "IdentityVerification|Create a project"
......
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