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
546a42f1
Commit
546a42f1
authored
Jun 27, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a682e082
edcd28ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
app/views/projects/notes/_actions.html.haml
app/views/projects/notes/_actions.html.haml
+1
-1
changelogs/unreleased/54595-incorrect-reaction-emoji-placement-in-discussion.yml
...4595-incorrect-reaction-emoji-placement-in-discussion.yml
+5
-0
spec/features/discussion_comments/commit_spec.rb
spec/features/discussion_comments/commit_spec.rb
+16
-0
No files found.
app/views/projects/notes/_actions.html.haml
View file @
546a42f1
...
...
@@ -39,7 +39,7 @@
-
if
can?
(
current_user
,
:award_emoji
,
note
)
-
if
note
.
emoji_awardable?
.note-actions-item
=
button_tag
title:
'Add reaction'
,
class:
"note-action-button note-emoji-button js-add-award js-note-emoji
}
has-tooltip btn btn-transparent"
,
data:
{
position:
'right'
,
container:
'body'
}
do
=
button_tag
title:
'Add reaction'
,
class:
"note-action-button note-emoji-button js-add-award js-note-emoji has-tooltip btn btn-transparent"
,
data:
{
position:
'right'
,
container:
'body'
}
do
=
icon
(
'spinner spin'
)
%span
{
class:
'link-highlight award-control-icon-neutral'
}=
sprite_icon
(
'slight-smile'
)
%span
{
class:
'link-highlight award-control-icon-positive'
}=
sprite_icon
(
'smiley'
)
...
...
changelogs/unreleased/54595-incorrect-reaction-emoji-placement-in-discussion.yml
0 → 100644
View file @
546a42f1
---
title
:
Fix incorrect emoji placement in commit diff discussion
merge_request
:
29445
author
:
type
:
fixed
spec/features/discussion_comments/commit_spec.rb
View file @
546a42f1
...
...
@@ -6,6 +6,8 @@ describe 'Discussion Comments Commit', :js do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
let!
(
:commit_discussion_note1
)
{
create
(
:discussion_note_on_commit
,
project:
project
)
}
let!
(
:commit_discussion_note2
)
{
create
(
:discussion_note_on_commit
,
in_reply_to:
commit_discussion_note1
)
}
before
do
project
.
add_maintainer
(
user
)
...
...
@@ -15,4 +17,18 @@ describe 'Discussion Comments Commit', :js do
end
it_behaves_like
'discussion comments'
,
'commit'
it
'has class .js-note-emoji'
do
expect
(
page
).
to
have_css
(
'.js-note-emoji'
)
end
it
'adds award to the correct note'
do
find
(
"#note_
#{
commit_discussion_note2
.
id
}
.js-note-emoji"
).
click
first
(
'.emoji-menu .js-emoji-btn'
).
click
wait_for_requests
expect
(
find
(
"#note_
#{
commit_discussion_note1
.
id
}
"
)).
not_to
have_css
(
'.js-awards-block'
)
expect
(
find
(
"#note_
#{
commit_discussion_note2
.
id
}
"
)).
to
have_css
(
'.js-awards-block'
)
end
end
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