summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-06 18:13:42 +0100
committerFilipa Lacerda <filipa@gitlab.com>2016-10-06 18:13:42 +0100
commitf415a32eceabe07e125cc2c26d922b618aef89e9 (patch)
treeb3a84753643016055f64211dcb0c1e9c096d1b83
parent8443cee049068d8d69633e57df5e15e6d999f073 (diff)
downloadgitlab-ce-f415a32eceabe07e125cc2c26d922b618aef89e9.tar.gz
Adds test for external link in environment details
-rw-r--r--spec/features/environments_spec.rb10
1 files changed, 10 insertions, 0 deletions
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