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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
bf1554f8
Commit
bf1554f8
authored
Oct 10, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Feature for milestone issue filter
Closes #1167
parent
7d145adf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
features/project/issues/milestones.feature
features/project/issues/milestones.feature
+8
-0
features/steps/project/project_milestones.rb
features/steps/project/project_milestones.rb
+22
-0
No files found.
features/project/issues/milestones.feature
View file @
bf1554f8
...
...
@@ -16,3 +16,11 @@ Feature: Project Milestones
Given
I click link
"New Milestone"
And
I submit new milestone
"v2.3"
Then
I should see milestone
"v2.3"
@javascript
Scenario
:
Listing closed issues
Given
the milestone has open and closed issues
And
I click link
"v2.2"
Then
I should see 3 issues
When
I click link
"All Issues"
Then
I should see 4 issues
features/steps/project/project_milestones.rb
View file @
bf1554f8
...
...
@@ -36,4 +36,26 @@ class ProjectMilestones < Spinach::FeatureSteps
3
.
times
{
Factory
:issue
,
:project
=>
project
,
:milestone
=>
milestone
}
end
Given
'the milestone has open and closed issues'
do
project
=
Project
.
find_by_name
(
"Shop"
)
milestone
=
project
.
milestones
.
find_by_title
(
'v2.2'
)
# 3 Open issues created above; create one closed issue
create
(
:closed_issue
,
project:
project
,
milestone:
milestone
)
end
When
'I click link "All Issues"'
do
click_link
'All Issues'
end
Then
"I should see 3 issues"
do
page
.
should
have_selector
(
'.milestone-issue-filter tbody tr'
,
count:
4
)
page
.
should
have_selector
(
'.milestone-issue-filter tbody tr.hide'
,
count:
1
)
end
Then
"I should see 4 issues"
do
page
.
should
have_selector
(
'.milestone-issue-filter tbody tr'
,
count:
4
)
page
.
should_not
have_selector
(
'.milestone-issue-filter tbody tr.hide'
)
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