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
Jérome Perrin
gitlab-ce
Commits
27317d55
Commit
27317d55
authored
Apr 26, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test
parent
aa364386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
spec/features/projects/milestones/milestone_spec.rb
spec/features/projects/milestones/milestone_spec.rb
+24
-0
No files found.
spec/features/projects/milestones/milestone_spec.rb
View file @
27317d55
...
...
@@ -63,4 +63,28 @@ feature 'Project milestone', :feature do
expect
(
page
).
not_to
have_content
(
'Assign some issues to this milestone.'
)
end
end
context
'when project has an issue'
do
before
do
create
(
:issue
,
project:
project
,
milestone:
milestone
)
visit
namespace_project_milestone_path
(
project
.
namespace
,
project
,
milestone
)
end
describe
'the collapsed sidebar'
do
before
do
find
(
'.milestone-sidebar .gutter-toggle'
).
click
end
it
'shows the total MR and issue counts'
do
find
(
'.milestone-sidebar .block'
,
match: :first
)
blocks
=
all
(
'.milestone-sidebar .block'
)
aggregate_failures
'MR and issue blocks'
do
expect
(
blocks
[
3
]).
to
have_content
1
expect
(
blocks
[
4
]).
to
have_content
0
end
end
end
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