2017-06-12 16:46:51 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-06-29 00:13:10 -04:00
|
|
|
feature 'Creating a new project milestone', :js do
|
2017-06-12 16:46:51 -04:00
|
|
|
let(:user) { create(:user) }
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project, name: 'test', namespace: user.namespace) }
|
2017-06-12 16:46:51 -04:00
|
|
|
|
|
|
|
before do
|
|
|
|
login_as(user)
|
2017-06-29 13:06:35 -04:00
|
|
|
visit new_project_milestone_path(project)
|
2017-06-12 16:46:51 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'description has autocomplete' do
|
|
|
|
find('#milestone_description').native.send_keys('')
|
|
|
|
fill_in 'milestone_description', with: '@'
|
|
|
|
|
|
|
|
expect(page).to have_selector('.atwho-view')
|
|
|
|
end
|
|
|
|
end
|