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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
514 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'
2020-06-23 00:09:42 +05:30
RSpec.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