Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-22 22:47:25 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-22 22:47:25 +0300
commitfb81291ee00a18e12ff290ae8b4caa63bb90e556 (patch)
tree7a9fdbb0848020913d80873d137f92c80762558f /spec
parent61e2a3eb15b2b7661523214c86c0f4f3d5ecc525 (diff)
parent9f322f2b3866833af1bca7ecd3624428d968b017 (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.rb9
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