From f415a32eceabe07e125cc2c26d922b618aef89e9 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Thu, 6 Oct 2016 18:13:42 +0100 Subject: Adds test for external link in environment details --- spec/features/environments_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index d4ecccf5f12..a4d2460f595 100644 --- a/spec/features/environments_spec.rb +++ b/spec/features/environments_spec.rb @@ -140,6 +140,16 @@ feature 'Environments', feature: true do expect(page).to have_content(manual.name) expect(manual.reload).to be_pending end + + context 'with external_url' do + given(:environment) { create(:environment, project: project, external_url: 'https://git.gitlab.com') } + given(:build) { create(:ci_build, pipeline: pipeline) } + given(:deployment) { create(:deployment, environment: environment, deployable: build) } + + scenario 'does show an external link button' do + expect(page).to have_selector('.btn.external-url') + end + end end end end -- cgit v1.2.1