diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-06-20 02:29:49 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-20 02:44:26 +0300 |
commit | 024c0f776606e38c7dd3743343a46b5f63991673 (patch) | |
tree | c3d634b3f780125c57c14a12bffc94c25d997c40 /spec/features | |
parent | 8fed618899268d24c7bb8088454191ec995d2d21 (diff) |
Merge branch 'enable-autocomplete-on-project-snippets' into 'master'
Enable autocomplete on project snippets
Closes #33911
See merge request !12286
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/snippets_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/projects/snippets_spec.rb b/spec/features/projects/snippets_spec.rb index 18689c17fe9..9f7e00e50d7 100644 --- a/spec/features/projects/snippets_spec.rb +++ b/spec/features/projects/snippets_spec.rb @@ -26,5 +26,19 @@ describe 'Project snippets', feature: true do expect(page).to have_content(snippets[1].title) end end + + context 'when submitting a note' do + before do + login_as :admin + visit namespace_project_snippet_path(project.namespace, project, snippets[0]) + end + + it 'should have autocomplete' do + find('#note_note').native.send_keys('') + fill_in 'note[note]', with: '@' + + expect(page).to have_selector('.atwho-view') + end + end end end |