diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-17 16:30:33 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-17 16:30:33 +0300 |
commit | 9f1beed7a7d5cb70db843c765754b8a4c7de141a (patch) | |
tree | afc3d0c6eb88998654895b04184b6deb4d672f91 /spec/features/projects/pipelines/pipeline_spec.rb | |
parent | 8faf0c7abe9ddd8e9b3932f8f22c8319ada06a35 (diff) |
Link external commit status badge to a target URL
Using new detailed statuses factory for external commit statuses.
Diffstat (limited to 'spec/features/projects/pipelines/pipeline_spec.rb')
-rw-r--r-- | spec/features/projects/pipelines/pipeline_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb index 0ecc5b1dfee..8f90bd45677 100644 --- a/spec/features/projects/pipelines/pipeline_spec.rb +++ b/spec/features/projects/pipelines/pipeline_spec.rb @@ -36,7 +36,8 @@ describe 'Pipeline', :feature, :js do create(:generic_commit_status, status: 'success', pipeline: pipeline, name: 'jenkins', - stage: 'external') + stage: 'external', + target_url: 'http://gitlab.com/status') end end @@ -139,6 +140,7 @@ describe 'Pipeline', :feature, :js do it 'shows the success icon and the generic comit status build' do expect(page).to have_selector('.ci-status-icon-success') expect(page).to have_content('jenkins') + expect(page).to have_link('jenkins', href: 'http://gitlab.com/status') end end end |