Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/issuables/issuable_list_spec.rb')
-rw-r--r--spec/features/issuables/issuable_list_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/issuables/issuable_list_spec.rb b/spec/features/issuables/issuable_list_spec.rb
index b1ffaaa7c7e..3f00bdc478d 100644
--- a/spec/features/issuables/issuable_list_spec.rb
+++ b/spec/features/issuables/issuable_list_spec.rb
@@ -48,6 +48,14 @@ RSpec.describe 'issuable list', :js do
end
end
+ it 'displays a warning if counting the number of issues times out' do
+ allow_any_instance_of(IssuesFinder).to receive(:count_by_state).and_raise(ActiveRecord::QueryCanceled)
+
+ visit_issuable_list(:issue)
+
+ expect(page).to have_text('Open ? Closed ? All ?')
+ end
+
it "counts merge requests closing issues icons for each issue" do
visit_issuable_list(:issue)