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
Léo-Paul Géneau
gitlab-ce
Commits
ee9a6d7f
Commit
ee9a6d7f
authored
Mar 10, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing milestone filter tests
parent
8d7e0f0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
spec/features/issues/filter_by_milestone_spec.rb
spec/features/issues/filter_by_milestone_spec.rb
+1
-3
spec/features/merge_requests/filter_by_milestone_spec.rb
spec/features/merge_requests/filter_by_milestone_spec.rb
+4
-3
No files found.
spec/features/issues/filter_by_milestone_spec.rb
View file @
ee9a6d7f
require
'rails_helper'
require
'rails_helper'
feature
'Issue filtering by Milestone'
,
feature:
true
do
feature
'Issue filtering by Milestone'
,
feature:
true
do
include
Select2Helper
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
...
@@ -32,7 +30,7 @@ feature 'Issue filtering by Milestone', feature: true do
...
@@ -32,7 +30,7 @@ feature 'Issue filtering by Milestone', feature: true do
def
filter_by_milestone
(
title
)
def
filter_by_milestone
(
title
)
find
(
".js-milestone-select"
).
click
find
(
".js-milestone-select"
).
click
sleep
1
sleep
0.5
find
(
".milestone-filter a"
,
text:
title
).
click
find
(
".milestone-filter a"
,
text:
title
).
click
sleep
1
sleep
1
end
end
...
...
spec/features/merge_requests/filter_by_milestone_spec.rb
View file @
ee9a6d7f
require
'rails_helper'
require
'rails_helper'
feature
'Merge Request filtering by Milestone'
,
feature:
true
do
feature
'Merge Request filtering by Milestone'
,
feature:
true
do
include
Select2Helper
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
...
@@ -31,6 +29,9 @@ feature 'Merge Request filtering by Milestone', feature: true do
...
@@ -31,6 +29,9 @@ feature 'Merge Request filtering by Milestone', feature: true do
end
end
def
filter_by_milestone
(
title
)
def
filter_by_milestone
(
title
)
select2
(
title
,
from:
'#milestone_title'
)
find
(
".js-milestone-select"
).
click
sleep
0.5
find
(
".milestone-filter a"
,
text:
title
).
click
sleep
1
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