diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-06-26 12:36:16 +0300 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-06-27 07:06:25 +0300 |
commit | 91463e52467d4b93d95693ac4eba1d5630ecdc98 (patch) | |
tree | dabe37b1c6a169d59e1611d17e0157cf0516e33b /spec/features/projects | |
parent | c4df74d1e1ba53996c0d64a8f8ef91712bbecf75 (diff) |
Specify environment actions to distinguish between metrics and every other environment related actions
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/user_uses_shortcuts_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/projects/user_uses_shortcuts_spec.rb b/spec/features/projects/user_uses_shortcuts_spec.rb index 495a010b32c..806460ba4d4 100644 --- a/spec/features/projects/user_uses_shortcuts_spec.rb +++ b/spec/features/projects/user_uses_shortcuts_spec.rb @@ -110,6 +110,14 @@ describe 'User uses shortcuts', :js do end context 'when navigating to the Operations pages' do + it 'redirects to the Metrics page' do + find('body').native.send_key('g') + find('body').native.send_key('m') + + expect(page).to have_active_navigation('Operations') + expect(page).to have_active_sub_navigation('Metrics') + end + it 'redirects to the Environments page' do find('body').native.send_key('g') find('body').native.send_key('e') |