diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-08-23 16:27:24 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-08-24 00:13:59 +0300 |
commit | e6f5653c2aaec4853ad6683f396b40ca44b69fbe (patch) | |
tree | 1bf98f169e5c19a40745cb4a04a2a462cdd535f0 /spec | |
parent | 453c225d4f9b2f945f6614fa054c67f8f534708a (diff) |
Merge branch 'gl-dropdown-enter' into 'master'
Fixed enter key in search input not working
## What does this MR do?
Fixes a bug where the enter key wouldn't search in the top nav search input
Closes #20627
See merge request !5888
Diffstat (limited to 'spec')
-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) |