debian-mirror-gitlab/spec/features/projects/milestones/new_spec.rb

19 lines
477 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
require 'spec_helper'
2018-11-08 19:23:39 +05:30
describe 'Creating a new project milestone', :js do
2017-09-10 17:25:29 +05:30
let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) }
before do
login_as(user)
visit new_project_milestone_path(project)
end
2018-11-08 19:23:39 +05:30
it 'description has emoji autocomplete' do
2017-09-10 17:25:29 +05:30
find('#milestone_description').native.send_keys('')
2018-11-08 19:23:39 +05:30
fill_in 'milestone_description', with: ':'
2017-09-10 17:25:29 +05:30
expect(page).to have_selector('.atwho-view')
end
end