diff --git a/features/project/shortcuts.feature b/features/project/shortcuts.feature index 10e7c23461057db7f8a9f825fec983f8b75d0b74..d5c9c0d0b6e48097ca121b597dff0b9f83094453 100644 --- a/features/project/shortcuts.feature +++ b/features/project/shortcuts.feature @@ -56,3 +56,8 @@ Feature: Project Shortcuts Scenario: Navigate to project feed Given I press "g" and "e" Then the active main tab should be Activity + + @javascript @focus + Scenario: Navigate to new Issue page + Given I press "i" + Then I should see the new issue page diff --git a/features/steps/project/project_shortcuts.rb b/features/steps/project/project_shortcuts.rb index 49e9c5520bb6031d336aa4236020643d92b24e60..c42623e81ccccc3a53783115aa96795f78be2af4 100644 --- a/features/steps/project/project_shortcuts.rb +++ b/features/steps/project/project_shortcuts.rb @@ -38,4 +38,8 @@ class Spinach::Features::ProjectShortcuts < Spinach::FeatureSteps find('body').native.send_key('g') find('body').native.send_key('e') end + + step 'I press "i"' do + find('body').native.send_key('i') + end end diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index b13e82f276be493fcd63115b994db75f6b187c20..a8c646463916c670d18ae25c004c95d2e7b9e5e9 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -102,6 +102,10 @@ module SharedProject @project ||= Project.first end + step 'I should see the new issue page' do + expect(page).to have_content('New Issue') + end + # ---------------------------------------- # Project permissions # ----------------------------------------