summaryrefslogtreecommitdiff
path: root/spec/features/boards/boards_spec.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-08-19 10:21:09 +0100
committerPhil Hughes <me@iamphill.com>2016-08-19 10:21:09 +0100
commit35cea54a52acbdf619783c76dbce1852a048ff7a (patch)
tree62846af1d8e4b771e7ff9863c5460041dd2a941f /spec/features/boards/boards_spec.rb
parent12fe6a6fd733110acc72aa0f5bdaec2b1fa1f358 (diff)
downloadgitlab-ce-35cea54a52acbdf619783c76dbce1852a048ff7a.tar.gz
Fixed keyboard shortcuts not working on issue boardsissue-boards-keyboard-shortcuts
Closes #21071
Diffstat (limited to 'spec/features/boards/boards_spec.rb')
-rw-r--r--spec/features/boards/boards_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb
index 8910c50c294..5d777895542 100644
--- a/spec/features/boards/boards_spec.rb
+++ b/spec/features/boards/boards_spec.rb
@@ -572,6 +572,18 @@ describe 'Issue Boards', feature: true, js: true do
end
end
+ context 'keyboard shortcuts' do
+ before do
+ visit namespace_project_board_path(project.namespace, project)
+ wait_for_vue_resource
+ end
+
+ it 'allows user to use keyboard shortcuts' do
+ find('.boards-list').native.send_keys('i')
+ expect(page).to have_content('New Issue')
+ end
+ end
+
context 'signed out user' do
before do
logout