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:
authorLin Jen-Shin <godfat@godfat.org>2017-11-10 10:44:50 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-11-10 10:44:50 +0300
commitb0974a4f6b072cc5f2e9a707aefb7d6afefe7de3 (patch)
tree5e84f19bf2049db0fed5d5028fac1b262d1eed63 /spec
parent1f2cdf6297f57fc3d87fe2183a4ee45355a799f1 (diff)
parentc34a08bddf0ac04275eba5d857ecdda83fb11c90 (diff)
Merge branch '10-1-jivl-fix-cancel-button-file-upload-new-issue' into 10-1-stable-patch-2
* 10-1-jivl-fix-cancel-button-file-upload-new-issue: Merge branch 'jivl-fix-cancel-button-file-upload-new-issue' into 'master'
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb
index d4fd3a50008..9b94452fb0d 100644
--- a/spec/features/issues_spec.rb
+++ b/spec/features/issues_spec.rb
@@ -583,6 +583,16 @@ describe 'Issues' do
expect(page.find_field("issue_description").value).not_to match /\n\n$/
end
+
+ it "cancels a file upload correctly" do
+ dropzone_file([Rails.root.join('spec', 'fixtures', 'dk.png')], 0, false)
+
+ click_button 'Cancel'
+
+ expect(page).to have_button('Attach a file')
+ expect(page).not_to have_button('Cancel')
+ expect(page).not_to have_selector('.uploading-progress-container', visible: true)
+ end
end
context 'form filled by URL parameters' do