summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-07 11:48:43 +0100
committerFilipa Lacerda <filipa@gitlab.com>2016-10-07 11:48:43 +0100
commit908b37bc88d9e671b508e064287564cc484d3c29 (patch)
treee9102f1dbc5667118dc99ed03ecaf75486693f3c
parente369455f73f34d74bb1ecbaacbb1fbf07292eda6 (diff)
downloadgitlab-ce-22774-retouch-environments-deployments.tar.gz
Updates test in order to look for link22774-retouch-environments-deployments
-rw-r--r--spec/features/environments_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb
index a4d2460f595..05925f93220 100644
--- a/spec/features/environments_spec.rb
+++ b/spec/features/environments_spec.rb
@@ -76,7 +76,7 @@ feature 'Environments', feature: true do
given(:deployment) { create(:deployment, environment: environment, deployable: build) }
scenario 'does show an external link button' do
- expect(page).to have_selector('.btn.external-url')
+ expect(page).to have_link(nil, href: environment.external_url)
end
end
end
@@ -147,9 +147,10 @@ feature 'Environments', feature: true do
given(:deployment) { create(:deployment, environment: environment, deployable: build) }
scenario 'does show an external link button' do
- expect(page).to have_selector('.btn.external-url')
+ expect(page).to have_link(nil, href: environment.external_url)
end
end
+
end
end
end