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
Jérome Perrin
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
...
@@ -11,8 +11,6 @@ describe 'Filter issues', js: true do
let!
(
:milestone
)
{
create
(
:milestone
,
title:
"8"
,
project:
project
,
start_date:
2
.
days
.
ago
)
}
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!
(
: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
def
expect_no_issues_list
page
.
within
'.issues-list'
do
page
.
within
'.issues-list'
do
expect
(
page
).
to
have_no_selector
(
'.issue'
)
expect
(
page
).
to
have_no_selector
(
'.issue'
)
...
@@ -122,7 +120,7 @@ describe 'Filter issues', js: true do
...
@@ -122,7 +120,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
'assignee:none'
)
input_filtered_search
(
'assignee:none'
)
expect_tokens
([
assignee_token
(
'none'
)])
expect_tokens
([
assignee_token
(
'none'
)])
expect_issues_list_count
(
3
,
1
)
expect_issues_list_count
(
3
)
expect_filtered_search_input_empty
expect_filtered_search_input_empty
end
end
end
end
...
@@ -159,7 +157,7 @@ describe 'Filter issues', js: true do
...
@@ -159,7 +157,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
'label:none'
)
input_filtered_search
(
'label:none'
)
expect_tokens
([
label_token
(
'none'
,
false
)])
expect_tokens
([
label_token
(
'none'
,
false
)])
expect_issues_list_count
(
8
,
1
)
expect_issues_list_count
(
8
)
expect_filtered_search_input_empty
expect_filtered_search_input_empty
end
end
...
@@ -322,7 +320,7 @@ describe 'Filter issues', js: true do
...
@@ -322,7 +320,7 @@ describe 'Filter issues', js: true do
input_filtered_search
(
"milestone:none"
)
input_filtered_search
(
"milestone:none"
)
expect_tokens
([
milestone_token
(
'none'
,
false
)])
expect_tokens
([
milestone_token
(
'none'
,
false
)])
expect_issues_list_count
(
3
,
1
)
expect_issues_list_count
(
3
)
expect_filtered_search_input_empty
expect_filtered_search_input_empty
end
end
...
@@ -394,7 +392,7 @@ describe 'Filter issues', js: true do
...
@@ -394,7 +392,7 @@ describe 'Filter issues', js: true do
search
=
'Bug'
search
=
'Bug'
input_filtered_search
(
search
)
input_filtered_search
(
search
)
expect_issues_list_count
(
4
,
1
)
expect_issues_list_count
(
4
)
expect_filtered_search_input
(
search
)
expect_filtered_search_input
(
search
)
end
end
...
@@ -497,6 +495,8 @@ describe 'Filter issues', js: true do
...
@@ -497,6 +495,8 @@ describe 'Filter issues', js: true do
end
end
describe
'retains filter when switching issue states'
do
describe
'retains filter when switching issue states'
do
let!
(
:closed_issue
)
{
create
(
:issue
,
:closed
,
project:
project
,
title:
'closed bug'
)
}
before
do
before
do
input_filtered_search
(
'bug'
)
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