diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-10-05 12:42:38 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-10-05 12:42:38 +0300 |
commit | b55c320c89b939718562f9d6a606e831cbb776c4 (patch) | |
tree | ffdfadfbba26e0db8f3e6e06ebe214174e3b6b54 /spec/features/issues/gfm_autocomplete_spec.rb | |
parent | 16d038da1c5c38c02fbc300eb180c64b67a0d908 (diff) |
Resolve "Drop down filter for project snippets"
Diffstat (limited to 'spec/features/issues/gfm_autocomplete_spec.rb')
-rw-r--r-- | spec/features/issues/gfm_autocomplete_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb index 98e37d8011a..08bf9bc7243 100644 --- a/spec/features/issues/gfm_autocomplete_spec.rb +++ b/spec/features/issues/gfm_autocomplete_spec.rb @@ -5,6 +5,7 @@ describe 'GFM autocomplete', :js do let(:project) { create(:project) } let(:label) { create(:label, project: project, title: 'special+') } let(:issue) { create(:issue, project: project) } + let!(:project_snippet) { create(:project_snippet, project: project, title: 'code snippet') } before do project.add_maintainer(user) @@ -301,6 +302,16 @@ describe 'GFM autocomplete', :js do end end + it 'shows project snippets' do + page.within '.timeline-content-form' do + find('#note-body').native.send_keys('$') + end + + page.within '.atwho-container' do + expect(page).to have_content(project_snippet.title) + end + end + private def expect_to_wrap(should_wrap, item, note, value) |