diff options
author | Robert Speicher <robert@gitlab.com> | 2017-05-03 22:23:31 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-05-03 22:23:31 +0000 |
commit | 9604ce524f3ddc8d652f5611fb4c698746ef184d (patch) | |
tree | badb3e95859b577cabb74aaccd1bd7b8b8e3b86a /features | |
parent | 21e4f0534d2d9faa5ef9826b990ed32e90ea0426 (diff) | |
parent | df36f1f47b7c1dcbe6d34fabd83764ae14919e15 (diff) | |
download | gitlab-ce-9604ce524f3ddc8d652f5611fb4c698746ef184d.tar.gz |
Merge branch 'dm-artifact-browser-header' into 'master'
Add breadcrumb, build header and pipelines submenu to artifacts browser
See merge request !11050
Diffstat (limited to 'features')
-rw-r--r-- | features/project/builds/artifacts.feature | 2 | ||||
-rw-r--r-- | features/steps/project/builds/artifacts.rb | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/features/project/builds/artifacts.feature b/features/project/builds/artifacts.feature index 52dc15f2eb6..09094d638c9 100644 --- a/features/project/builds/artifacts.feature +++ b/features/project/builds/artifacts.feature @@ -17,6 +17,7 @@ Feature: Project Builds Artifacts When I visit recent build details page And I click artifacts browse button Then I should see content of artifacts archive + And I should see the build header Scenario: I browse subdirectory of build artifacts Given recent build has artifacts available @@ -25,6 +26,7 @@ Feature: Project Builds Artifacts And I click artifacts browse button And I click link to subdirectory within build artifacts Then I should see content of subdirectory within artifacts archive + And I should see the directory name in the breadcrumb Scenario: I browse directory with UTF-8 characters in name Given recent build has artifacts available diff --git a/features/steps/project/builds/artifacts.rb b/features/steps/project/builds/artifacts.rb index be0f6eee55a..3ec5c8e2f4f 100644 --- a/features/steps/project/builds/artifacts.rb +++ b/features/steps/project/builds/artifacts.rb @@ -22,6 +22,12 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps end end + step 'I should see the build header' do + page.within('.build-header') do + expect(page).to have_content "Job ##{@build.id} in pipeline ##{@pipeline.id} for commit #{@pipeline.short_sha}" + end + end + step 'I click link to subdirectory within build artifacts' do page.within('.tree-table') { click_link 'other_artifacts_0.1.2' } end @@ -34,6 +40,12 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps end end + step 'I should see the directory name in the breadcrumb' do + page.within('.repo-breadcrumb') do + expect(page).to have_content 'other_artifacts_0.1.2' + end + end + step 'recent build artifacts contain directory with UTF-8 characters' do # metadata fixture contains relevant directory end |