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:
authorJacob Schatz <jschatz@gitlab.com>2016-04-25 22:13:25 +0300
committerJacob Schatz <jschatz@gitlab.com>2016-04-25 22:13:25 +0300
commitd809507e0558465a83792ad60634379b34a3a25a (patch)
tree67fa5b680c700306c2577409e750d6c0044f119a /spec/features
parentaf569f32e99061ca3b08dffcc373a05ac62dd76b (diff)
parent6e9ce9a6cd826f409af11ce2cadcfc6b5143bd1a (diff)
Merge branch 'issue_14904' into 'master'
Add new shortcuts Closes #14904 - On a project: `i` To navigate to New Issue page. - On a issuable: `l` To open Label dropdown on a issuable. - Global: Typing `?` multiple times now toggles the modal. See merge request !3686
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/project/shortcuts_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/project/shortcuts_spec.rb b/spec/features/project/shortcuts_spec.rb
new file mode 100644
index 00000000000..2595c4181e5
--- /dev/null
+++ b/spec/features/project/shortcuts_spec.rb
@@ -0,0 +1,21 @@
+require 'spec_helper'
+
+feature 'Project shortcuts', feature: true do
+ let(:project) { create(:project) }
+ 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('New Issue')
+ end
+ end
+ end
+end