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
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-30 20:15:20 +0300
committerDouwe Maan <douwe@selenight.nl>2017-05-01 01:52:49 +0300
commit2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch)
treed29cab907f6c68f2703bc56043e345948bfc578f /spec/features/snippets
parent54040ce0662c71cfaee3cc12305b5ab021beafbb (diff)
Add download button to project snippets
Diffstat (limited to 'spec/features/snippets')
-rw-r--r--spec/features/snippets/show_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/snippets/show_spec.rb b/spec/features/snippets/show_spec.rb
index cebcba6a230..e36cf547f80 100644
--- a/spec/features/snippets/show_spec.rb
+++ b/spec/features/snippets/show_spec.rb
@@ -24,6 +24,12 @@ feature 'Snippet', :js, feature: true do
# shows an enabled copy button
expect(page).to have_selector('.js-copy-blob-source-btn:not(.disabled)')
+
+ # shows a raw button
+ expect(page).to have_link('Open raw')
+
+ # shows a download button
+ expect(page).to have_link('Download')
end
end
end
@@ -53,6 +59,12 @@ feature 'Snippet', :js, feature: true do
# shows a disabled copy button
expect(page).to have_selector('.js-copy-blob-source-btn.disabled')
+
+ # shows a raw button
+ expect(page).to have_link('Open raw')
+
+ # shows a download button
+ expect(page).to have_link('Download')
end
end