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
098ad0a5
Commit
098ad0a5
authored
Jul 08, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "mystery guest" from Milestone filtering features
parent
cf7c57aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
26 deletions
+18
-26
spec/features/issues/filter_by_milestone_spec.rb
spec/features/issues/filter_by_milestone_spec.rb
+8
-12
spec/features/merge_requests/filter_by_milestone_spec.rb
spec/features/merge_requests/filter_by_milestone_spec.rb
+10
-14
No files found.
spec/features/issues/filter_by_milestone_spec.rb
View file @
098ad0a5
require
'
spec
_helper'
require
'
rails
_helper'
feature
'Issue filtering by Milestone'
,
feature:
true
do
include
Select2Helper
let
(
:project
)
{
create
(
:project
)
}
before
do
login_as
(
:admin
)
end
scenario
'User filters by Issues without a Milestone'
,
js:
true
do
scenario
'filters by no Milestone'
,
js:
true
do
project
=
create
(
:project
,
:public
)
create
(
:issue
,
project:
project
)
visit_issues
visit_issues
(
project
)
filter_by_milestone
(
Milestone
::
None
.
title
)
expect
(
page
).
to
have_css
(
'.issue-title'
,
count:
1
)
end
scenario
'User filters by Issues with a specific Milestone'
,
js:
true
do
scenario
'filters by a specific Milestone'
,
js:
true
do
project
=
create
(
:project
,
:public
)
milestone
=
create
(
:milestone
,
project:
project
)
create
(
:issue
,
project:
project
,
milestone:
milestone
)
visit_issues
visit_issues
(
project
)
filter_by_milestone
(
milestone
.
title
)
expect
(
page
).
to
have_css
(
'.issue-title'
,
count:
1
)
end
def
visit_issues
def
visit_issues
(
project
)
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
end
...
...
spec/features/merge_requests/filter_by_milestone_spec.rb
View file @
098ad0a5
require
'
spec
_helper'
require
'
rails
_helper'
feature
'Merge Request filtering by Milestone'
,
feature:
true
do
include
Select2Helper
let
(
:project
)
{
create
(
:project
)
}
scenario
'filters by no Milestone'
,
js:
true
do
project
=
create
(
:project
,
:public
)
create
(
:merge_request
,
:with_diffs
,
source_project:
project
)
before
do
login_as
(
:admin
)
end
scenario
'User filters by Merge Requests without a Milestone'
,
js:
true
do
create
(
:merge_request
,
:simple
,
source_project:
project
)
visit_merge_requests
visit_merge_requests
(
project
)
filter_by_milestone
(
Milestone
::
None
.
title
)
expect
(
page
).
to
have_css
(
'.merge-request-title'
,
count:
1
)
end
scenario
'User filters by Merge Requests with a specific Milestone'
,
js:
true
do
scenario
'filters by a specific Milestone'
,
js:
true
do
project
=
create
(
:project
,
:public
)
milestone
=
create
(
:milestone
,
project:
project
)
create
(
:merge_request
,
:
simple
,
source_project:
project
,
milestone:
milestone
)
create
(
:merge_request
,
:
with_diffs
,
source_project:
project
,
milestone:
milestone
)
visit_merge_requests
visit_merge_requests
(
project
)
filter_by_milestone
(
milestone
.
title
)
expect
(
page
).
to
have_css
(
'.merge-request-title'
,
count:
1
)
end
def
visit_merge_requests
def
visit_merge_requests
(
project
)
visit
namespace_project_merge_requests_path
(
project
.
namespace
,
project
)
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