summaryrefslogtreecommitdiff
path: root/spec/features/projects/snippets
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-30 12:15:20 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-30 17:52:49 -0500
commit2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch)
treed29cab907f6c68f2703bc56043e345948bfc578f /spec/features/projects/snippets
parent54040ce0662c71cfaee3cc12305b5ab021beafbb (diff)
downloadgitlab-ce-2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0.tar.gz
Add download button to project snippetsdm-snippet-download-button
Diffstat (limited to 'spec/features/projects/snippets')
-rw-r--r--spec/features/projects/snippets/show_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/snippets/show_spec.rb b/spec/features/projects/snippets/show_spec.rb
index 7eb1210e307..cedf3778c7e 100644
--- a/spec/features/projects/snippets/show_spec.rb
+++ b/spec/features/projects/snippets/show_spec.rb
@@ -30,6 +30,12 @@ feature 'Project 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
@@ -59,6 +65,12 @@ feature 'Project 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