diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-07-07 23:00:03 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-07-10 19:21:44 +0300 |
commit | e592aa1b3cb5aeaae1890731741843b9425946fe (patch) | |
tree | b8c42474eaddd8c4b66599b4651a5499925f9b03 /spec/features | |
parent | e786ecff48410399d9039bc399e9dfcd3b64f319 (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/features')
-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 350473437a8..363b46e309d 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('') |