gitlab-org--gitlab-foss/spec/features/projects/shortcuts_spec.rb

22 lines
539 B
Ruby
Raw Normal View History

2016-04-21 15:24:36 -04:00
require 'spec_helper'
feature 'Project shortcuts', feature: true do
2016-05-26 17:11:58 -04:00
let(:project) { create(:project, name: 'Victorialand') }
2016-04-21 15:24:36 -04:00
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')
2016-05-26 17:11:58 -04:00
expect(page).to have_content('Victorialand')
2016-04-21 15:24:36 -04:00
end
end
end
end