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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4c9264b6
Commit
4c9264b6
authored
May 12, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix milestone_filter_spec.rb by using wait_for_ajax and a correct user flow
parent
aa6f4432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
spec/features/dashboard/milestone_filter_spec.rb
spec/features/dashboard/milestone_filter_spec.rb
+7
-6
No files found.
spec/features/dashboard/milestone_filter_spec.rb
View file @
4c9264b6
require
'spec_helper'
describe
'Dashboard > milestone filter'
,
feature:
true
,
js:
true
do
describe
'Dashboard > milestone filter'
,
:feature
,
:js
do
include
WaitForAjax
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
'test'
,
namespace:
user
.
namespace
)
}
let
(
:milestone
)
{
create
(
:milestone
,
title:
"v1.0"
,
project:
project
)
}
...
...
@@ -26,30 +28,29 @@ describe 'Dashboard > milestone filter', feature: true, js: true do
before
do
find
(
milestone_select
).
click
wait_for_ajax
page
.
within
(
'.dropdown-content'
)
do
click_link
'v1.0'
end
find
(
milestone_select
).
click
wait_for_ajax
end
it
'shows issues with Milestone v1.0'
do
expect
(
find
(
'.issues-list'
)).
to
have_selector
(
'.issue'
,
count:
1
)
find
(
milestone_select
).
click
expect
(
find
(
'.dropdown-content'
)).
to
have_selector
(
'a.is-active'
,
count:
1
)
end
it
'should not change active Milestone unless clicked'
do
find
(
milestone_select
).
trigger
(
'click'
)
expect
(
find
(
'.dropdown-content'
)).
to
have_selector
(
'a.is-active'
,
count:
1
)
# open & close dropdown
find
(
'.dropdown-menu-close'
).
click
expect
(
find
(
'.milestone-filter'
)).
not_to
have_selector
(
'.dropdown.open'
)
find
(
milestone_select
).
click
expect
(
find
(
'.dropdown-content'
)).
to
have_selector
(
'a.is-active'
,
count:
1
)
...
...
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