diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-08-14 15:43:46 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2019-03-14 18:15:40 +0100 |
commit | 70261ff11c93dcad30b0f4b3b61c4289d0ae1bb3 (patch) | |
tree | 6157c1cfd5b02e78ede0de294ed5af2d080d1ce9 /spec/features | |
parent | c53704398435e6585dbf7e26415a55162fa4e4a8 (diff) | |
download | gitlab-ce-70261ff11c93dcad30b0f4b3b61c4289d0ae1bb3.tar.gz |
add users search results to global search
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/global_search_spec.rb | 18 |
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 |