2017-06-12 16:46:51 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-07-05 02:32:05 -04:00
|
|
|
describe '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
|
|
|
|
|
2018-06-28 07:45:11 -04:00
|
|
|
it 'description has emoji autocomplete' do
|
2017-06-12 16:46:51 -04:00
|
|
|
find('#milestone_description').native.send_keys('')
|
2018-06-28 07:45:11 -04:00
|
|
|
fill_in 'milestone_description', with: ':'
|
2017-06-12 16:46:51 -04:00
|
|
|
|
|
|
|
expect(page).to have_selector('.atwho-view')
|
|
|
|
end
|
|
|
|
end
|