diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-19 09:45:58 +0100 |
---|---|---|
committer | Bryce <bryce@gitlab.com> | 2016-08-23 14:44:28 +0200 |
commit | 5963263912c1633ff49ce758f71589bae8133e57 (patch) | |
tree | 7d090740231b7431cc79da66b44e900742929e5e /spec/features/search_spec.rb | |
parent | f633f7db66d4ff42abbe764c21f9da4e49045f91 (diff) | |
download | gitlab-ce-5963263912c1633ff49ce758f71589bae8133e57.tar.gz |
Fixed enter key in search input not working
Closes #20627
Diffstat (limited to 'spec/features/search_spec.rb')
-rw-r--r-- | spec/features/search_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb index b7a25d80fec..dcd3a2f17b0 100644 --- a/spec/features/search_spec.rb +++ b/spec/features/search_spec.rb @@ -71,6 +71,16 @@ describe "Search", feature: true do end describe 'Right header search field', feature: true do + it 'allows enter key to search', js: true do + visit namespace_project_path(project.namespace, project) + fill_in 'search', with: 'gitlab' + find('#search').native.send_keys(:enter) + + page.within '.title' do + expect(page).to have_content 'Search' + end + end + describe 'Search in project page' do before do visit namespace_project_path(project.namespace, project) |