summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-31 17:19:47 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-09-01 10:46:05 -0400
commit98e6a150ab48b2aaf8ea19571c1e2da249cd9b17 (patch)
tree9052f35f3a82625d5fae32783ea8b91979cc1c95
parent984c2f8b0f24709bed680b107275f4ac6c2f5838 (diff)
downloadgitlab-ce-98e6a150ab48b2aaf8ea19571c1e2da249cd9b17.tar.gz
Remove the top-level closed issue from filter_issues_spec
-rw-r--r--spec/features/issues/filtered_search/filter_issues_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/issues/filtered_search/filter_issues_spec.rb b/spec/features/issues/filtered_search/filter_issues_spec.rb
index 825a3d1c476..e29e06bb70a 100644
--- a/spec/features/issues/filtered_search/filter_issues_spec.rb
+++ b/spec/features/issues/filtered_search/filter_issues_spec.rb
@@ -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')