BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
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