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:
authorMike Greiling <mike@pixelcog.com>2017-11-01 22:33:16 +0300
committerMike Greiling <mike@pixelcog.com>2017-11-01 22:33:16 +0300
commit53281e09e486acdca8c9ca9adba3bd4d4d50514a (patch)
tree4d78ee9ab38c7d7e86d38075c77033cc45e141e7 /spec/features/issues/filtered_search/dropdown_author_spec.rb
parent3f3875dbf93b5e6b02d3f4320145f5a5bd8b42dc (diff)
add slow_requests! to filtered search tests which expect to see a loading spinner
Diffstat (limited to 'spec/features/issues/filtered_search/dropdown_author_spec.rb')
-rw-r--r--spec/features/issues/filtered_search/dropdown_author_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/issues/filtered_search/dropdown_author_spec.rb b/spec/features/issues/filtered_search/dropdown_author_spec.rb
index 5e20fb48768..305b6830faa 100644
--- a/spec/features/issues/filtered_search/dropdown_author_spec.rb
+++ b/spec/features/issues/filtered_search/dropdown_author_spec.rb
@@ -51,9 +51,11 @@ describe 'Dropdown author', :js do
end
it 'should show loading indicator when opened' do
+ Gitlab::Testing::RequestBlockerMiddleware.slow_requests!
filtered_search.set('author:')
expect(page).to have_css('#js-dropdown-author .filter-dropdown-loading', visible: true)
+ Gitlab::Testing::RequestBlockerMiddleware.allow_requests!
end
it 'should hide loading indicator when loaded' do