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

21 lines
548 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe 'Creating a new project milestone', :js, feature_category: :team_planning 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