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
08728cb3
Commit
08728cb3
authored
Nov 11, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move spec to check on MR page instead of Issues page
parent
f20875ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
spec/features/merge_requests/filter_by_labels_spec.rb
spec/features/merge_requests/filter_by_labels_spec.rb
+14
-12
No files found.
spec/features/
issue
s/filter_by_labels_spec.rb
→
spec/features/
merge_request
s/filter_by_labels_spec.rb
View file @
08728cb3
...
...
@@ -7,25 +7,27 @@ feature 'Issue filtering by Labels', feature: true, js: true do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:label
)
{
create
(
:label
,
project:
project
)
}
before
do
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
feature
=
create
(
:label
,
project:
project
,
title:
'feature'
)
enhancement
=
create
(
:label
,
project:
project
,
title:
'enhancement'
)
let!
(
:bug
)
{
create
(
:label
,
project:
project
,
title:
'bug'
)
}
let!
(
:feature
)
{
create
(
:label
,
project:
project
,
title:
'feature'
)
}
let!
(
:enhancement
)
{
create
(
:label
,
project:
project
,
title:
'enhancement'
)
}
let!
(
:mr1
)
{
create
(
:merge_request
,
title:
"Bugfix1"
,
source_project:
project
,
target_project:
project
,
source_branch:
"bugfix1"
)
}
let!
(
:mr2
)
{
create
(
:merge_request
,
title
:"Bugfix2"
,
source_project:
project
,
target_project:
project
,
source_branch:
"bugfix2"
)
}
let!
(
:mr3
)
{
create
(
:merge_request
,
title:
"Feature1"
,
source_project:
project
,
target_project:
project
,
source_branch:
"feature1"
)
}
issue1
=
create
(
:issue
,
title:
"Bugfix1"
,
project:
project
)
issue
1
.
labels
<<
bug
before
do
mr
1
.
labels
<<
bug
issue2
=
create
(
:issue
,
title:
"Bugfix2"
,
project:
project
)
issue2
.
labels
<<
bug
issue2
.
labels
<<
enhancement
mr2
.
labels
<<
bug
mr2
.
labels
<<
enhancement
issue3
=
create
(
:issue
,
title:
"Feature1"
,
project:
project
)
issue
3
.
labels
<<
feature
mr3
.
title
=
"Feature1"
mr
3
.
labels
<<
feature
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
namespace_project_
issue
s_path
(
project
.
namespace
,
project
)
visit
namespace_project_
merge_request
s_path
(
project
.
namespace
,
project
)
end
context
'filter by label bug'
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