diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-07-07 23:00:03 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-07-07 23:00:03 +0300 |
commit | 4800291cad3a407cbec33d645cc978962312bc6f (patch) | |
tree | 3f4d1a28a12f095254171d5b87394bc24fe39ac0 /spec | |
parent | 48a8edcc3c589ccd84e3798f0df9f47b52a17403 (diff) | |
parent | 932b94f911394543a0377d712b2b28da827e4aad (diff) |
Merge branch 'issue-description-gfm' into 'master'
Fixed GFM references not being included when update issue inline
Closes gitlab-ee#2878
See merge request !12720
Diffstat (limited to 'spec')
-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('') |