diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-08 12:43:46 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-08 12:43:46 +0200 |
commit | 8404ab46b91103033a78fdd183e9873f85799b6f (patch) | |
tree | 6164e0b548deba381b51b7f8eaddc1dd6701ec53 /features | |
parent | c2f02fc1a4b88e1c01cb3562168322d0c5debba3 (diff) | |
download | gitlab-ce-8404ab46b91103033a78fdd183e9873f85799b6f.tar.gz |
Add shortcut for project activity page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/project/shortcuts.feature | 8 | ||||
-rw-r--r-- | features/steps/project/project_shortcuts.rb | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/features/project/shortcuts.feature b/features/project/shortcuts.feature index cfb68bf1f50..9567b571120 100644 --- a/features/project/shortcuts.feature +++ b/features/project/shortcuts.feature @@ -46,7 +46,13 @@ Feature: Project Shortcuts Then the active main tab should be Wiki @javascript - Scenario: Navigate to project feed + Scenario: Navigate to project home Given I visit my project's files page Given I press "g" and "p" Then the active main tab should be Home + + @javascript + Scenario: Navigate to project feed + Given I visit my project's files page + Given I press "g" and "e" + Then the active main tab should be Activity diff --git a/features/steps/project/project_shortcuts.rb b/features/steps/project/project_shortcuts.rb index a10e7bf78ee..49e9c5520bb 100644 --- a/features/steps/project/project_shortcuts.rb +++ b/features/steps/project/project_shortcuts.rb @@ -33,4 +33,9 @@ class Spinach::Features::ProjectShortcuts < Spinach::FeatureSteps find('body').native.send_key('g') find('body').native.send_key('w') end + + step 'I press "g" and "e"' do + find('body').native.send_key('g') + find('body').native.send_key('e') + end end |