summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-25 10:44:53 +0100
committerPhil Hughes <me@iamphill.com>2016-07-26 14:57:53 +0100
commit20f932d768700f073a1ed5b0d6789c31ab41499b (patch)
tree01c4e89010dfad83f4669b785390231b39c40018 /spec
parent580f5aa2b74f4c7ee745a57cd8999576723b14a7 (diff)
downloadgitlab-ce-20f932d768700f073a1ed5b0d6789c31ab41499b.tar.gz
Fixed issue with autocomplete search not working with enter keysearch-autocomplete-enter-fix
Closes #20165
Diffstat (limited to 'spec')
-rw-r--r--spec/features/search_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb
index d0a301038c4..83e8a62793f 100644
--- a/spec/features/search_spec.rb
+++ b/spec/features/search_spec.rb
@@ -51,6 +51,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)