Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-06-26 12:36:16 +0300
committerJose <jvargas@gitlab.com>2018-06-27 07:06:25 +0300
commit91463e52467d4b93d95693ac4eba1d5630ecdc98 (patch)
treedabe37b1c6a169d59e1611d17e0157cf0516e33b /spec/features/projects
parentc4df74d1e1ba53996c0d64a8f8ef91712bbecf75 (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.rb8
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')