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
a329763d
Commit
a329763d
authored
Sep 07, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing reset all test.
parent
f76c4c82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
spec/features/issues/reset_filters_spec.rb
spec/features/issues/reset_filters_spec.rb
+11
-6
No files found.
spec/features/issues/reset_filters_spec.rb
View file @
a329763d
...
...
@@ -6,7 +6,7 @@ feature 'Issues filter reset button', feature: true, js: true do
let!
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:user
)
{
create
(
:user
)}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let!
(
:bug
)
{
create
(
:label
,
project:
project
,
name:
'bug'
)}
# maybe switch back to title
let!
(
:bug
)
{
create
(
:label
,
project:
project
,
name:
'bug'
)}
let!
(
:issue1
)
{
create
(
:issue
,
project:
project
,
milestone:
milestone
,
author:
user
,
assignee:
user
,
title:
'Feature'
)}
let!
(
:issue2
)
{
create
(
:labeled_issue
,
project:
project
,
labels:
[
bug
],
title:
'Bugfix1'
)}
...
...
@@ -66,14 +66,19 @@ feature 'Issues filter reset button', feature: true, js: true do
end
end
context
'when label and text filters have been dually applied'
do
it
'resets both filters'
do
fill_in
'issue_search'
,
with:
'Feat'
expect
(
page
).
to
have_css
(
'.issue'
,
count:
1
)
context
'when all filters have been applied'
do
it
'resets all filters'
do
wait_for_ajax
filter_by_milestone
(
milestone
.
title
)
wait_for_ajax
filter_by_author
(
user
.
username
)
wait_for_ajax
filter_by_label
(
bug
.
title
)
expect
(
page
).
to
have_css
(
'.issue'
,
count:
0
)
reset_filters
...
...
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