diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-12-19 19:18:48 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-19 19:18:48 +0300 |
commit | 23a38eac61f44c0ee3baed68ddcf23f28c03b20d (patch) | |
tree | 4907ee71ce03bba2cd1c4a6f1fd05e14838f2d82 /spec | |
parent | a9d4b2eb86be7ab77d60cfb9e3817364d5d06692 (diff) |
Fix shortcut links on help page
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/help_pages_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/help_pages_spec.rb b/spec/features/help_pages_spec.rb index ab896a310be..0d04ed612c2 100644 --- a/spec/features/help_pages_spec.rb +++ b/spec/features/help_pages_spec.rb @@ -32,6 +32,24 @@ describe 'Help Pages' do it_behaves_like 'help page', prefix: '/gitlab' end + + context 'quick link shortcuts', :js do + before do + visit help_path + end + + it 'focuses search bar' do + find('.js-trigger-search-bar').click + + expect(page).to have_selector('#search:focus') + end + + it 'opens shortcuts help dialog' do + find('.js-trigger-shortcut').click + + expect(page).to have_selector('#modal-shortcuts') + end + end end context 'in a production environment with version check enabled', :js do |