diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-07-07 23:45:53 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-07-07 23:45:53 +0300 |
commit | 75f3f6e1d6a826b28363fba518f7d3cf016c2df6 (patch) | |
tree | e06f8564bbc63e0a21c16849cacd4ea24ad5f848 /spec/features/issues/gfm_autocomplete_spec.rb | |
parent | 7d03012f2a950804568f744b433f04ff4a7f1186 (diff) | |
parent | 69e17c225e53feaa7449e468e89aca3f084ab9f9 (diff) |
Merge branch 'master' into rs-sign_in
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 2193c5fd69c..9b4cc653af5 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('') |