Skip to content
Snippets Groups Projects
Commit 35cea54a authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed keyboard shortcuts not working on issue boards

Closes #21071
parent 12fe6a6f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -20,6 +20,9 @@
path = page.split(':');
shortcut_handler = null;
switch (page) {
case 'projects:boards:show':
shortcut_handler = new ShortcutsNavigation();
break;
case 'projects:issues:index':
Issuable.init();
new IssuableBulkActions();
Loading
Loading
Loading
Loading
@@ -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
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