diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 22:47:25 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 22:47:25 +0300 |
commit | fb81291ee00a18e12ff290ae8b4caa63bb90e556 (patch) | |
tree | 7a9fdbb0848020913d80873d137f92c80762558f /spec | |
parent | 61e2a3eb15b2b7661523214c86c0f4f3d5ecc525 (diff) | |
parent | 9f322f2b3866833af1bca7ecd3624428d968b017 (diff) |
Merge branch 'newline-after-file-attachment-notes' into 'master'
Added double newline after file upload markdown insert
Closes #28511
See merge request !9430
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 094f645a077..ed3826bd46e 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -577,6 +577,15 @@ describe 'Issues', feature: true do expect(page.find_field("issue_description").value).to have_content 'banana_sample' end + + it 'adds double newline to end of attachment markdown' do + drop_in_dropzone test_image_file + + # Wait for the file to upload + sleep 1 + + expect(page.find_field("issue_description").value).to match /\n\n$/ + end end end |