Align bot username with backend changes

parent 16f39305
...@@ -12,7 +12,7 @@ import { glEmojiTag } from '../../../emoji'; ...@@ -12,7 +12,7 @@ import { glEmojiTag } from '../../../emoji';
const MAX_SKELETON_LINES = 4; const MAX_SKELETON_LINES = 4;
const SECURITY_BOT_USER_DATA = { const SECURITY_BOT_USER_DATA = {
username: 'security-bot', username: 'GitLab-Security-Bot',
name: 'GitLab Security Bot', name: 'GitLab Security Bot',
}; };
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
</div> </div>
<div v-if="isSecurityBot" class="gl-text-blue-500"> <div v-if="isSecurityBot" class="gl-text-blue-500">
<gl-icon name="question" /> <gl-icon name="question" />
<gl-link data-testid="user-popover-security-bot-docs-link" :href="user.websiteUrl"> <gl-link data-testid="user-popover-bot-docs-link" :href="user.websiteUrl">
{{ sprintf(__('Learn more about %{username}'), { username: user.name }) }} {{ sprintf(__('Learn more about %{username}'), { username: user.name }) }}
</gl-link> </gl-link>
</div> </div>
......
...@@ -205,10 +205,10 @@ describe('User Popover Component', () => { ...@@ -205,10 +205,10 @@ describe('User Popover Component', () => {
const SECURITY_BOT_USER = { const SECURITY_BOT_USER = {
...DEFAULT_PROPS.user, ...DEFAULT_PROPS.user,
name: 'GitLab Security Bot', name: 'GitLab Security Bot',
username: 'security-bot', username: 'GitLab-Security-Bot',
websiteUrl: '/security/bot/docs', websiteUrl: '/security/bot/docs',
}; };
const findSecurityBotDocsLink = () => findByTestId('user-popover-security-bot-docs-link'); const findSecurityBotDocsLink = () => findByTestId('user-popover-bot-docs-link');
it("shows a link to the bot's documentation", () => { it("shows a link to the bot's documentation", () => {
createWrapper({ user: SECURITY_BOT_USER }); createWrapper({ user: SECURITY_BOT_USER });
......
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