Commit 85827e9e authored by Mark Florian's avatar Mark Florian

Update banner wording

parent 0a05443e
<script>
import { GlBanner, GlSprintf } from '@gitlab/ui';
import { GlBanner } from '@gitlab/ui';
import { s__ } from '~/locale';
export default {
components: {
GlBanner,
GlSprintf,
},
inject: ['upgradePath'],
i18n: {
title: s__('SecurityConfiguration|Secure your project with Ultimate'),
listItems: [
s__(
'SecurityConfiguration|Check your application %{strongStart}before%{strongEnd} deployment for security vulnerabilities including unauthorized access, data leaks, denial of service attacks.',
),
s__('SecurityConfiguration|Manage and report on vulnerabilities detected.'),
s__(
'SecurityConfiguration|Implement controls to prevent known vulnerabilities being added to your application.',
),
bodyStart: s__(
`SecurityConfiguration|GitLab Ultimate checks your application for security vulnerabilities
that may lead to unauthorized access, data leaks, and denial of service
attacks. Its features include:`,
),
bodyListItems: [
s__('SecurityConfiguration|Vulnerability details and statistics in the merge request.'),
s__('SecurityConfiguration|High-level vulnerability statistics across projects and groups.'),
s__('SecurityConfiguration|Runtime security metrics for application environments.'),
],
bodyEnd: s__(
'SecurityConfiguration|With the information provided, you can immediately begin risk analysis and remediation within GitLab.',
),
buttonText: s__('SecurityConfiguration|Upgrade or start a free trial'),
},
};
......@@ -31,14 +34,12 @@ export default {
:button-link="upgradePath"
v-on="$listeners"
>
<p>{{ $options.i18n.bodyStart }}</p>
<ul>
<li v-for="listItem in $options.i18n.listItems" :key="listItem">
<gl-sprintf :message="listItem">
<template #strong="{ content }"
><strong>{{ content }}</strong></template
>
</gl-sprintf>
<li v-for="bodyListItem in $options.i18n.bodyListItems" :key="bodyListItem">
{{ bodyListItem }}
</li>
</ul>
<p>{{ $options.i18n.bodyEnd }}</p>
</gl-banner>
</template>
......@@ -28790,9 +28790,6 @@ msgstr ""
msgid "SecurityConfiguration|By default, all analyzers are applied in order to cover all languages across your project, and only run if the language is detected in the Merge Request."
msgstr ""
msgid "SecurityConfiguration|Check your application %{strongStart}before%{strongEnd} deployment for security vulnerabilities including unauthorized access, data leaks, denial of service attacks."
msgstr ""
msgid "SecurityConfiguration|Code snippet for the %{scanType} configuration"
msgstr ""
......@@ -28841,13 +28838,13 @@ msgstr ""
msgid "SecurityConfiguration|Feature documentation for %{featureName}"
msgstr ""
msgid "SecurityConfiguration|Implement controls to prevent known vulnerabilities being added to your application."
msgid "SecurityConfiguration|GitLab Ultimate checks your application for security vulnerabilities that may lead to unauthorized access, data leaks, and denial of service attacks. Its features include:"
msgstr ""
msgid "SecurityConfiguration|Manage"
msgid "SecurityConfiguration|High-level vulnerability statistics across projects and groups."
msgstr ""
msgid "SecurityConfiguration|Manage and report on vulnerabilities detected."
msgid "SecurityConfiguration|Manage"
msgstr ""
msgid "SecurityConfiguration|Manage scans"
......@@ -28859,6 +28856,9 @@ msgstr ""
msgid "SecurityConfiguration|Not enabled"
msgstr ""
msgid "SecurityConfiguration|Runtime security metrics for application environments."
msgstr ""
msgid "SecurityConfiguration|SAST Analyzers"
msgstr ""
......@@ -28892,6 +28892,12 @@ msgstr ""
msgid "SecurityConfiguration|View history"
msgstr ""
msgid "SecurityConfiguration|Vulnerability details and statistics in the merge request."
msgstr ""
msgid "SecurityConfiguration|With the information provided, you can immediately begin risk analysis and remediation within GitLab."
msgstr ""
msgid "SecurityConfiguration|You can quickly enable all security scanning tools by enabling %{linkStart}Auto DevOps%{linkEnd}."
msgstr ""
......
import { GlBanner, GlSprintf } from '@gitlab/ui';
import { GlBanner } from '@gitlab/ui';
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
import UpgradeBanner from '~/security_configuration/components/upgrade_banner.vue';
......@@ -19,9 +19,6 @@ describe('UpgradeBanner component', () => {
listeners: {
close: closeSpy,
},
stubs: {
GlSprintf,
},
});
};
......@@ -46,9 +43,11 @@ describe('UpgradeBanner component', () => {
it('renders the list of benefits', () => {
const wrapperText = wrapper.text();
expect(wrapperText).toContain('Check your application');
expect(wrapperText).toContain('Manage and report');
expect(wrapperText).toContain('Implement controls');
expect(wrapperText).toContain('GitLab Ultimate checks your application');
expect(wrapperText).toContain('statistics in the merge request');
expect(wrapperText).toContain('statistics across projects');
expect(wrapperText).toContain('Runtime security metrics');
expect(wrapperText).toContain('risk analysis and remediation');
});
it(`re-emits GlBanner's close event`, () => {
......
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