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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-08 13:43:46 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-08 13:43:46 +0300
commit8404ab46b91103033a78fdd183e9873f85799b6f (patch)
tree6164e0b548deba381b51b7f8eaddc1dd6701ec53 /features
parentc2f02fc1a4b88e1c01cb3562168322d0c5debba3 (diff)
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.feature8
-rw-r--r--features/steps/project/project_shortcuts.rb5
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