BigW Consortium Gitlab

Commit b9af0305 by Alfredo Sumaran

Add tests for the "i" shortcut

parent 29734516
......@@ -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
......@@ -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
......@@ -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
# ----------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment