Commit 6e9ce9a6 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Add Rspec test for "i" shortcut

parent f5a6ff15
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
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