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
98e6a150
Commit
98e6a150
authored
Aug 31, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the top-level closed issue from filter_issues_spec
parent
984c2f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/features/issues/filtered_search/filter_issues_spec.rb
spec/features/issues/filtered_search/filter_issues_spec.rb
+6
-6
No files found.
spec/features/issues/filtered_search/filter_issues_spec.rb
View file @
98e6a150
...
...
@@ -11,8 +11,6 @@ describe 'Filter issues', js: true do
let!
(
:milestone
)
{
create
(
:milestone
,
title:
"8"
,
project:
project
,
start_date:
2
.
days
.
ago
)
}
let!
(
:multiple_words_label
)
{
create
(
:label
,
project:
project
,
title:
"Two words"
)
}
let!
(
:closed_issue
)
{
create
(
:issue
,
title:
'bug that is closed'
,
project:
project
,
state: :closed
)
}
def
expect_no_issues_list
page
.
within
'.issues-list'
do
expect
(
page
).
to
have_no_selector
(
'.issue'
)
...
...
@@ -122,7 +120,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
'assignee:none'
)
expect_tokens
([
assignee_token
(
'none'
)])
expect_issues_list_count
(
3
,
1
)
expect_issues_list_count
(
3
)
expect_filtered_search_input_empty
end
end
...
...
@@ -159,7 +157,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
'label:none'
)
expect_tokens
([
label_token
(
'none'
,
false
)])
expect_issues_list_count
(
8
,
1
)
expect_issues_list_count
(
8
)
expect_filtered_search_input_empty
end
...
...
@@ -322,7 +320,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
"milestone:none"
)
expect_tokens
([
milestone_token
(
'none'
,
false
)])
expect_issues_list_count
(
3
,
1
)
expect_issues_list_count
(
3
)
expect_filtered_search_input_empty
end
...
...
@@ -394,7 +392,7 @@ describe 'Filter issues', js: true do
search
=
'Bug'
input_filtered_search
(
search
)
expect_issues_list_count
(
4
,
1
)
expect_issues_list_count
(
4
)
expect_filtered_search_input
(
search
)
end
...
...
@@ -497,6 +495,8 @@ describe 'Filter issues', js: true do
end
describe
'retains filter when switching issue states'
do
let!
(
:closed_issue
)
{
create
(
:issue
,
:closed
,
project:
project
,
title:
'closed bug'
)
}
before
do
input_filtered_search
(
'bug'
)
...
...
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