Commit 908b37bc authored by Filipa Lacerda's avatar Filipa Lacerda

Updates test in order to look for link

parent e369455f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment