diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-12 15:16:16 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:16 +0100 |
commit | 6d7a77074fcdd57ccdc33e3cb39146da4afdc0f4 (patch) | |
tree | 1b6be1d49e7642afb71cb7fe913f24fff10b806c /features/steps | |
parent | e8995f9fd5c12882eafcf3766627f64a3d6f623d (diff) | |
download | gitlab-ce-6d7a77074fcdd57ccdc33e3cb39146da4afdc0f4.tar.gz |
Add specs for endpoint meant to be accelerated by workhorse
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/builds.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/features/steps/project/builds.rb b/features/steps/project/builds.rb index 12d0dd24427..5702496ac84 100644 --- a/features/steps/project/builds.rb +++ b/features/steps/project/builds.rb @@ -75,4 +75,15 @@ class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps expect(page).to have_no_content('non-utf8-dir') end end + + step 'I click download button for a file within build artifacts' do + page.within('.tree-table') { first('.artifact-download').click } + end + + step 'download of a file extracted from build artifacts should start' do + # this will be accelerated by Workhorse + response_json = JSON.parse(page.body, symbolize_names: true) + expect(response_json[:archive]).to end_with('build_artifacts.zip') + expect(response_json[:path]).to eq Base64.encode64('ci_artifacts.txt') + end end |