Skip to content
Snippets Groups Projects
Commit b9af0305 authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Add tests for the "i" shortcut

parent 29734516
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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
# ----------------------------------------
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment