diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-09 15:08:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-09 15:08:17 +0300 |
commit | a373ecffca1512404cb4f237399e3bf275d87f69 (patch) | |
tree | 0c131c86a4f88b427c5d644cd14c4596daa87d36 /spec/features/search | |
parent | 1613500bf7400f5692a55fd65235a4a10fc40a7d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/search')
9 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/search/user_searches_for_code_spec.rb b/spec/features/search/user_searches_for_code_spec.rb index 56e93e4408b..f55dccce4f0 100644 --- a/spec/features/search/user_searches_for_code_spec.rb +++ b/spec/features/search/user_searches_for_code_spec.rb @@ -37,6 +37,7 @@ RSpec.describe 'User searches for code' do end include_examples 'top right search form' + include_examples 'search timeouts', 'blobs' it 'finds code' do fill_in('dashboard_search', with: 'rspec') diff --git a/spec/features/search/user_searches_for_comments_spec.rb b/spec/features/search/user_searches_for_comments_spec.rb index 2a12b22b457..5185a2460dc 100644 --- a/spec/features/search/user_searches_for_comments_spec.rb +++ b/spec/features/search/user_searches_for_comments_spec.rb @@ -13,6 +13,8 @@ RSpec.describe 'User searches for comments' do visit(project_path(project)) end + include_examples 'search timeouts', 'notes' + context 'when a comment is in commits' do context 'when comment belongs to an invalid commit' do let(:comment) { create(:note_on_commit, author: user, project: project, commit_id: 12345678, note: 'Bug here') } diff --git a/spec/features/search/user_searches_for_commits_spec.rb b/spec/features/search/user_searches_for_commits_spec.rb index 1a882050126..279db686aa9 100644 --- a/spec/features/search/user_searches_for_commits_spec.rb +++ b/spec/features/search/user_searches_for_commits_spec.rb @@ -14,6 +14,8 @@ RSpec.describe 'User searches for commits', :js do visit(search_path(project_id: project.id)) end + include_examples 'search timeouts', 'commits' + context 'when searching by SHA' do it 'finds a commit and redirects to its page' do submit_search(sha) diff --git a/spec/features/search/user_searches_for_issues_spec.rb b/spec/features/search/user_searches_for_issues_spec.rb index 184f8ba0d36..b0902096770 100644 --- a/spec/features/search/user_searches_for_issues_spec.rb +++ b/spec/features/search/user_searches_for_issues_spec.rb @@ -23,6 +23,7 @@ RSpec.describe 'User searches for issues', :js do end include_examples 'top right search form' + include_examples 'search timeouts', 'issues' it 'finds an issue' do search_for_issue(issue1.title) diff --git a/spec/features/search/user_searches_for_merge_requests_spec.rb b/spec/features/search/user_searches_for_merge_requests_spec.rb index 32952a127d3..d7f490ba9bc 100644 --- a/spec/features/search/user_searches_for_merge_requests_spec.rb +++ b/spec/features/search/user_searches_for_merge_requests_spec.rb @@ -22,6 +22,7 @@ RSpec.describe 'User searches for merge requests', :js do end include_examples 'top right search form' + include_examples 'search timeouts', 'merge_requests' it 'finds a merge request' do search_for_mr(merge_request1.title) diff --git a/spec/features/search/user_searches_for_milestones_spec.rb b/spec/features/search/user_searches_for_milestones_spec.rb index e81abb44ba5..7a1ec16385c 100644 --- a/spec/features/search/user_searches_for_milestones_spec.rb +++ b/spec/features/search/user_searches_for_milestones_spec.rb @@ -16,6 +16,7 @@ RSpec.describe 'User searches for milestones', :js do end include_examples 'top right search form' + include_examples 'search timeouts', 'milestones' it 'finds a milestone' do fill_in('dashboard_search', with: milestone1.title) diff --git a/spec/features/search/user_searches_for_projects_spec.rb b/spec/features/search/user_searches_for_projects_spec.rb index e34ae031679..c38ad077cd0 100644 --- a/spec/features/search/user_searches_for_projects_spec.rb +++ b/spec/features/search/user_searches_for_projects_spec.rb @@ -12,6 +12,7 @@ RSpec.describe 'User searches for projects', :js do end include_examples 'top right search form' + include_examples 'search timeouts', 'projects' it 'finds a project' do visit(search_path) diff --git a/spec/features/search/user_searches_for_users_spec.rb b/spec/features/search/user_searches_for_users_spec.rb index 826ed73c9bf..a5cf12fa068 100644 --- a/spec/features/search/user_searches_for_users_spec.rb +++ b/spec/features/search/user_searches_for_users_spec.rb @@ -11,6 +11,8 @@ RSpec.describe 'User searches for users' do sign_in(user1) end + include_examples 'search timeouts', 'users' + context 'when on the dashboard' do it 'finds the user', :js do visit dashboard_projects_path diff --git a/spec/features/search/user_searches_for_wiki_pages_spec.rb b/spec/features/search/user_searches_for_wiki_pages_spec.rb index 8913f1fe9ee..06545d8640f 100644 --- a/spec/features/search/user_searches_for_wiki_pages_spec.rb +++ b/spec/features/search/user_searches_for_wiki_pages_spec.rb @@ -15,6 +15,7 @@ RSpec.describe 'User searches for wiki pages', :js do end include_examples 'top right search form' + include_examples 'search timeouts', 'wiki_blobs' shared_examples 'search wiki blobs' do it 'finds a page' do |