diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-07 20:08:39 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-07 20:08:39 +0300 |
commit | 932b94f911394543a0377d712b2b28da827e4aad (patch) | |
tree | 96d4aa00b0300b605a512b7febc50010378cb2db /spec/features/issues/gfm_autocomplete_spec.rb | |
parent | 1dab640357fa1ba8992757499e4167fcd4ce6276 (diff) |
Fixed GFM references not being included when update issue inline
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/2878
Diffstat (limited to 'spec/features/issues/gfm_autocomplete_spec.rb')
-rw-r--r-- | spec/features/issues/gfm_autocomplete_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb index a0f26bf9a92..fbfae02ff4a 100644 --- a/spec/features/issues/gfm_autocomplete_spec.rb +++ b/spec/features/issues/gfm_autocomplete_spec.rb @@ -14,6 +14,18 @@ feature 'GFM autocomplete', feature: true, js: true do wait_for_requests end + it 'updates issue descripton with GFM reference' do + find('.issuable-edit').click + + find('#issue-description').native.send_keys("@#{user.name[0...3]}") + + find('.atwho-view .cur').trigger('click') + + click_button 'Save changes' + + expect(find('.description')).to have_content(user.to_reference) + end + it 'opens autocomplete menu when field starts with text' do page.within '.timeline-content-form' do find('#note_note').native.send_keys('') |