diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-30 12:15:20 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-30 17:52:49 -0500 |
commit | 2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch) | |
tree | d29cab907f6c68f2703bc56043e345948bfc578f /spec/features/projects/snippets | |
parent | 54040ce0662c71cfaee3cc12305b5ab021beafbb (diff) | |
download | gitlab-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.rb | 12 |
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 |