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
d0365e6b
Commit
d0365e6b
authored
Jan 18, 2021
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor class name typo
parent
0383cee9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_image.vue
...s/vue_shared/components/user_avatar/user_avatar_image.vue
+1
-1
spec/frontend/pipelines/pipelines_table_row_spec.js
spec/frontend/pipelines/pipelines_table_row_spec.js
+2
-2
spec/frontend/vue_shared/components/user_avatar/user_avatar_image_spec.js
...e_shared/components/user_avatar/user_avatar_image_spec.js
+2
-2
spec/frontend/vue_shared/components/user_avatar/user_avatar_link_spec.js
...ue_shared/components/user_avatar/user_avatar_link_spec.js
+1
-1
No files found.
app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_image.vue
View file @
d0365e6b
...
...
@@ -104,7 +104,7 @@ export default {
:target=
"() => $refs.userAvatarImage"
:placement=
"tooltipPlacement"
boundary=
"window"
class=
"js-user-avatar-image-toolip"
class=
"js-user-avatar-image-tool
t
ip"
>
<slot>
{{
tooltipText
}}
</slot>
</gl-tooltip>
...
...
spec/frontend/pipelines/pipelines_table_row_spec.js
View file @
d0365e6b
...
...
@@ -82,7 +82,7 @@ describe('Pipelines Table Row', () => {
).
toEqual
(
pipeline
.
user
.
path
);
expect
(
wrapper
.
find
(
'
.table-section:nth-child(3) .js-user-avatar-image-toolip
'
).
text
().
trim
(),
wrapper
.
find
(
'
.table-section:nth-child(3) .js-user-avatar-image-tool
t
ip
'
).
text
().
trim
(),
).
toEqual
(
pipeline
.
user
.
name
);
});
});
...
...
@@ -109,7 +109,7 @@ describe('Pipelines Table Row', () => {
const
commitAuthorLink
=
commitAuthorElement
.
attributes
(
'
href
'
);
const
commitAuthorName
=
commitAuthorElement
.
find
(
'
.js-user-avatar-image-toolip
'
)
.
find
(
'
.js-user-avatar-image-tool
t
ip
'
)
.
text
()
.
trim
();
...
...
spec/frontend/vue_shared/components/user_avatar/user_avatar_image_spec.js
View file @
d0365e6b
...
...
@@ -91,11 +91,11 @@ describe('User Avatar Image Component', () => {
});
it
(
'
renders the tooltip slot
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-toolip
'
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-tool
t
ip
'
).
exists
()).
toBe
(
true
);
});
it
(
'
renders the tooltip content
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-toolip
'
).
text
()).
toContain
(
slots
.
default
[
0
]);
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-tool
t
ip
'
).
text
()).
toContain
(
slots
.
default
[
0
]);
});
it
(
'
does not render tooltip data attributes for on avatar image
'
,
()
=>
{
...
...
spec/frontend/vue_shared/components/user_avatar/user_avatar_link_spec.js
View file @
d0365e6b
...
...
@@ -83,7 +83,7 @@ describe('User Avatar Link Component', () => {
describe
(
'
username
'
,
()
=>
{
it
(
'
should not render avatar image tooltip
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-toolip
'
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
(
'
.js-user-avatar-image-tool
t
ip
'
).
exists
()).
toBe
(
false
);
});
it
(
'
should render username prop in <span>
'
,
()
=>
{
...
...
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