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:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-08-14 16:43:46 +0300
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2019-03-14 20:15:40 +0300
commit70261ff11c93dcad30b0f4b3b61c4289d0ae1bb3 (patch)
tree6157c1cfd5b02e78ede0de294ed5af2d080d1ce9 /spec/features
parentc53704398435e6585dbf7e26415a55162fa4e4a8 (diff)
add users search results to global search
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/global_search_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/global_search_spec.rb b/spec/features/global_search_spec.rb
index d7692181453..9ecf2cab3b5 100644
--- a/spec/features/global_search_spec.rb
+++ b/spec/features/global_search_spec.rb
@@ -25,4 +25,22 @@ describe 'Global search' do
expect(page).to have_selector('.gl-pagination .next')
end
end
+
+ describe 'users search' do
+ it 'shows the found user under the Users tab' do
+ create(:user, username: 'gob_bluth', name: 'Gob Bluth')
+
+ visit dashboard_projects_path
+
+ fill_in 'search', with: 'gob'
+ click_button 'Go'
+
+ expect(page).to have_content('Users 1')
+
+ click_on('Users 1')
+
+ expect(page).to have_content('Gob Bluth')
+ expect(page).to have_content('@gob_bluth')
+ end
+ end
end