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/search/user_searches_for_commits_spec.rb')
-rw-r--r--spec/features/search/user_searches_for_commits_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/search/user_searches_for_commits_spec.rb b/spec/features/search/user_searches_for_commits_spec.rb
index 724daf9277d..2510a7f9b20 100644
--- a/spec/features/search/user_searches_for_commits_spec.rb
+++ b/spec/features/search/user_searches_for_commits_spec.rb
@@ -19,6 +19,14 @@ RSpec.describe 'User searches for commits', :js, :clean_gitlab_redis_rate_limiti
let(:additional_params) { { project_id: project.id } }
end
+ it 'shows scopes when there is no search term' do
+ submit_dashboard_search('')
+
+ within_testid('search-filter') do
+ expect(page).to have_selector('[data-testid="nav-item"]', minimum: 5)
+ end
+ end
+
context 'when searching by SHA' do
it 'finds a commit and redirects to its page' do
submit_search(sha)