summaryrefslogtreecommitdiff
path: root/spec/features/projects/shortcuts_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/shortcuts_spec.rb')
-rw-r--r--spec/features/projects/shortcuts_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/projects/shortcuts_spec.rb b/spec/features/projects/shortcuts_spec.rb
new file mode 100644
index 00000000000..54aa9c66a08
--- /dev/null
+++ b/spec/features/projects/shortcuts_spec.rb
@@ -0,0 +1,21 @@
+require 'spec_helper'
+
+feature 'Project shortcuts', feature: true do
+ let(:project) { create(:project, name: 'Victorialand') }
+ let(:user) { create(:user) }
+
+ describe 'On a project', js: true do
+ before do
+ project.team << [user, :master]
+ login_as user
+ visit namespace_project_path(project.namespace, project)
+ end
+
+ describe 'pressing "i"' do
+ it 'redirects to new issue page' do
+ find('body').native.send_key('i')
+ expect(page).to have_content('Victorialand')
+ end
+ end
+ end
+end