Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c8d9b6b9
Commit
c8d9b6b9
authored
Oct 13, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align bot username with backend changes
parent
16f39305
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
...ripts/vue_shared/components/user_popover/user_popover.vue
+2
-2
spec/frontend/vue_shared/components/user_popover/user_popover_spec.js
...d/vue_shared/components/user_popover/user_popover_spec.js
+2
-2
No files found.
app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
View file @
c8d9b6b9
...
@@ -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-b
ot
'
,
username
:
'
GitLab-Security-B
ot
'
,
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
>
...
...
spec/frontend/vue_shared/components/user_popover/user_popover_spec.js
View file @
c8d9b6b9
...
@@ -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-b
ot
'
,
username
:
'
GitLab-Security-B
ot
'
,
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
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment