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
a3f695c7
Commit
a3f695c7
authored
Oct 07, 2016
by
Luke "Jared" Bennett
Committed by
Alfredo Sumaran
Nov 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a weight filter reset scenario.
parent
5146eaee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
spec/features/issues/reset_filters_spec.rb
spec/features/issues/reset_filters_spec.rb
+12
-2
No files found.
spec/features/issues/reset_filters_spec.rb
View file @
a3f695c7
...
...
@@ -9,7 +9,7 @@ feature 'Issues filter reset button', feature: true, js: true do
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
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'
)}
let!
(
:issue2
)
{
create
(
:labeled_issue
,
project:
project
,
labels:
[
bug
],
title:
'Bugfix1'
,
weight:
'1'
)}
before
do
project
.
team
<<
[
user
,
:developer
]
...
...
@@ -64,10 +64,20 @@ feature 'Issues filter reset button', feature: true, js: true do
expect
(
page
).
to
have_css
(
'.issue'
,
count:
2
)
end
end
context
'when weight filter has been applied'
do
it
'resets the weight filter'
do
visit_issues
(
project
,
weight:
'1'
)
expect
(
page
).
to
have_css
(
'.issue'
,
count:
1
)
reset_filters
expect
(
page
).
to
have_css
(
'.issue'
,
count:
2
)
end
end
context
'when all filters have been applied'
do
it
'resets all filters'
do
visit_issues
(
project
,
assignee_id:
user
.
id
,
author_id:
user
.
id
,
milestone_title:
milestone
.
title
,
label_name:
bug
.
name
,
search:
'Bug'
)
visit_issues
(
project
,
assignee_id:
user
.
id
,
author_id:
user
.
id
,
milestone_title:
milestone
.
title
,
label_name:
bug
.
name
,
weight:
'1'
,
search:
'Bug'
)
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