2016-06-02 11:05:42 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
feature 'Project shortcuts' do
|
2016-06-16 23:09:34 +05:30
|
|
|
let(:project) { create(:project, name: 'Victorialand') }
|
2016-06-02 11:05:42 +05:30
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
describe 'On a project', js: true do
|
|
|
|
before do
|
|
|
|
project.team << [user, :master]
|
2017-09-10 17:25:29 +05:30
|
|
|
sign_in user
|
|
|
|
visit project_path(project)
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
describe 'pressing "i"' do
|
|
|
|
it 'redirects to new issue page' do
|
|
|
|
find('body').native.send_key('i')
|
2016-06-16 23:09:34 +05:30
|
|
|
expect(page).to have_content('Victorialand')
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|