Commit 92c70ac9 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'vs/adjust-text-cc-validation-modal' into 'master'

Change texts for CC validation

See merge request gitlab-org/gitlab!61657
parents 53a3dcf4 d80a7024
...@@ -10,15 +10,14 @@ const IFRAME_QUERY = Object.freeze({ ...@@ -10,15 +10,14 @@ const IFRAME_QUERY = Object.freeze({
// 350 is the mininum required height to get all iframe inputs visible // 350 is the mininum required height to get all iframe inputs visible
const IFRAME_MINIMUM_HEIGHT = 350; const IFRAME_MINIMUM_HEIGHT = 350;
const i18n = Object.freeze({ const i18n = Object.freeze({
title: s__('Billings|Verify User Account'), title: s__('Billings|Validate user account'),
description: s__(` description: s__(`
Billings|To discourage and reduce abuse GitLab will require some users to provide a valid credit card to use free pipeline minutes on GitLab.com. Billings|To use free pipeline minutes, you'll need to validate your account with a credit card. This is required to discourage and reduce abuse on GitLab infrastructure.
To use free pipeline minutes, you will need to validate your account with a credit card. %{strongStart}GitLab will not charge or store your credit card, it will only be used for validation.%{strongEnd}`),
%{strongStart}GitLab will not add permanent charges to your credit card as we will only use it for validation.%{strongEnd}`),
iframeNotSupported: __('Your browser does not support iFrames'), iframeNotSupported: __('Your browser does not support iFrames'),
actions: { actions: {
primary: { primary: {
text: s__('Billings|Verify account'), text: s__('Billings|Validate account'),
}, },
}, },
}); });
......
...@@ -5,17 +5,17 @@ import AccountVerificationModal from './account_verification_modal.vue'; ...@@ -5,17 +5,17 @@ import AccountVerificationModal from './account_verification_modal.vue';
const i18n = { const i18n = {
successAlert: { successAlert: {
title: s__('Billings|User successfully verified'), title: s__('Billings|User successfully validated'),
text: s__( text: s__(
'Billings|Your user account has been successfully verified. You will now be able to run pipelines on any free or trial namespace.', 'Billings|Your user account has been successfully validated. You can now use free pipeline minutes.',
), ),
}, },
dangerAlert: { dangerAlert: {
title: s__('Billings|User Verification Required'), title: s__('Billings|User validation required'),
text: s__(`Billings|As a user on a free or trial namespace, you'll need to verify your account with a credit card to run pipelines. This is required to help prevent text: s__(`Billings|To use free pipeline minutes, you'll need to validate your account with a credit card.
cryptomining attacks on GitLab infrastructure. This is required to discourage and reduce abuse on GitLab infrastructure.
%{strongStart}GitLab will not charge or store your credit card, it will only be used for validation.%{strongEnd}`), %{strongStart}GitLab will not charge or store your credit card, it will only be used for validation.%{strongEnd}`),
primaryButtonText: s__('Billings|Verify account'), primaryButtonText: s__('Billings|Validate account'),
}, },
}; };
......
...@@ -50,13 +50,11 @@ describe('Account verification modal', () => { ...@@ -50,13 +50,11 @@ describe('Account verification modal', () => {
}); });
it('renders the title', () => { it('renders the title', () => {
expect(wrapper.findComponent(GlModal).attributes('title')).toBe('Verify User Account'); expect(wrapper.findComponent(GlModal).attributes('title')).toBe('Validate user account');
}); });
it('renders the description', () => { it('renders the description', () => {
expect(wrapper.find('p').text()).toContain( expect(wrapper.find('p').text()).toContain('To use free pipeline minutes');
'To discourage and reduce abuse GitLab will require',
);
}); });
}); });
}); });
...@@ -33,11 +33,11 @@ describe('CreditCardValidationRequiredAlert', () => { ...@@ -33,11 +33,11 @@ describe('CreditCardValidationRequiredAlert', () => {
}); });
it('renders title', () => { it('renders title', () => {
expect(findGlAlert().attributes('title')).toBe('User Verification Required'); expect(findGlAlert().attributes('title')).toBe('User validation required');
}); });
it('renders description', () => { it('renders description', () => {
expect(findGlAlert().text()).toContain('As a user on a free or trial namespace'); expect(findGlAlert().text()).toContain('To use free pipeline minutes');
}); });
it('renders danger alert', () => { it('renders danger alert', () => {
......
...@@ -5054,25 +5054,22 @@ msgstr "" ...@@ -5054,25 +5054,22 @@ msgstr ""
msgid "BillingPlan|Upgrade for free" msgid "BillingPlan|Upgrade for free"
msgstr "" msgstr ""
msgid "Billings|As a user on a free or trial namespace, you'll need to verify your account with a credit card to run pipelines. This is required to help prevent cryptomining attacks on GitLab infrastructure. %{strongStart}GitLab will not charge or store your credit card, it will only be used for validation.%{strongEnd}" msgid "Billings|To use free pipeline minutes, you'll need to validate your account with a credit card. This is required to discourage and reduce abuse on GitLab infrastructure. %{strongStart}GitLab will not charge or store your credit card, it will only be used for validation.%{strongEnd}"
msgstr "" msgstr ""
msgid "Billings|To discourage and reduce abuse GitLab will require some users to provide a valid credit card to use free pipeline minutes on GitLab.com. To use free pipeline minutes, you will need to validate your account with a credit card. %{strongStart}GitLab will not add permanent charges to your credit card as we will only use it for validation.%{strongEnd}" msgid "Billings|User successfully validated"
msgstr "" msgstr ""
msgid "Billings|User Verification Required" msgid "Billings|User validation required"
msgstr "" msgstr ""
msgid "Billings|User successfully verified" msgid "Billings|Validate account"
msgstr "" msgstr ""
msgid "Billings|Verify User Account" msgid "Billings|Validate user account"
msgstr "" msgstr ""
msgid "Billings|Verify account" msgid "Billings|Your user account has been successfully validated. You can now use free pipeline minutes."
msgstr ""
msgid "Billings|Your user account has been successfully verified. You will now be able to run pipelines on any free or trial namespace."
msgstr "" msgstr ""
msgid "Billing|An email address is only visible for users with public emails." msgid "Billing|An email address is only visible for users with public emails."
......
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