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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
f99b38c9
Commit
f99b38c9
authored
May 25, 2016
by
ZJ van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tests specific for awards on notes
parent
65230022
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
134 deletions
+0
-134
spec/features/issues/award_spec.rb
spec/features/issues/award_spec.rb
+0
-67
spec/features/merge_requests/award_spec.rb
spec/features/merge_requests/award_spec.rb
+0
-67
No files found.
spec/features/issues/award_spec.rb
View file @
f99b38c9
...
...
@@ -24,79 +24,12 @@ feature 'Issue awards', js: true, feature: true do
expect
(
first
(
'.js-emoji-btn'
)).
to
have_content
'0'
end
it
'should show award menu button in notes'
do
page
.
within
(
'.note'
)
do
expect
(
page
).
to
have_selector
(
'.js-award-action-btn'
)
end
end
it
'should not show award bar on note if no awards given'
do
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
be_visible
end
end
it
'should be able to show award menu when clicking add award button in note'
do
show_note_award_menu
end
it
'should only have one menu on the page'
do
first
(
'.js-add-award'
).
click
expect
(
page
).
to
have_selector
(
'.emoji-menu'
)
page
.
within
(
'.note'
)
do
find
(
'.js-add-award'
).
click
end
expect
(
page
).
to
have_selector
(
'.emoji-menu'
,
count:
1
)
end
it
'should add award to note'
do
show_note_award_menu
award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
end
it
'should remove award from note'
do
show_note_award_menu
award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
remove_award_on_note
sleep
0.5
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
be_visible
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
have_selector
(
'.active'
)
end
end
it
'should not hide award bar on notes with more than 1 award'
do
show_note_award_menu
award_on_note
show_note_award_menu
award_on_note
(
2
)
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
remove_award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
end
end
end
describe
'logged out'
do
...
...
spec/features/merge_requests/award_spec.rb
View file @
f99b38c9
...
...
@@ -24,79 +24,12 @@ feature 'Merge request awards', js: true, feature: true do
expect
(
first
(
'.js-emoji-btn'
)).
to
have_content
'0'
end
it
'should show award menu button in notes'
do
page
.
within
(
'.note'
)
do
expect
(
page
).
to
have_selector
(
'.js-award-action-btn'
)
end
end
it
'should not show award bar on note if no awards given'
do
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
be_visible
end
end
it
'should be able to show award menu when clicking add award button in note'
do
show_note_award_menu
end
it
'should only have one menu on the page'
do
first
(
'.js-add-award'
).
click
expect
(
page
).
to
have_selector
(
'.emoji-menu'
)
page
.
within
(
'.note'
)
do
find
(
'.js-add-award'
).
click
end
expect
(
page
).
to
have_selector
(
'.emoji-menu'
,
count:
1
)
end
it
'should add award to note'
do
show_note_award_menu
award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
end
it
'should remove award from note'
do
show_note_award_menu
award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
remove_award_on_note
sleep
0.5
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
be_visible
expect
(
find
(
'.js-awards-block'
,
visible:
false
)).
not_to
have_selector
(
'.active'
)
end
end
it
'should not hide award bar on notes with more than 1 award'
do
show_note_award_menu
award_on_note
show_note_award_menu
award_on_note
(
2
)
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
expect
(
find
(
'.js-awards-block'
)).
to
have_selector
(
'.active'
)
end
remove_award_on_note
page
.
within
(
'.note'
)
do
expect
(
find
(
'.js-awards-block'
)).
to
be_visible
end
end
end
describe
'logged out'
do
...
...
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