add accept_confirm when attempting to stop an environment in widget_deployments_spec.rb

This commit is contained in:
Mike Greiling 2017-10-30 11:07:13 -05:00
parent 2fbbf45ea6
commit 5a0e41a58a
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -42,7 +42,7 @@ feature 'Widget Deployments Header', :js do
end end
scenario 'does start build when stop button clicked' do scenario 'does start build when stop button clicked' do
click_button('Stop environment') accept_confirm { click_button('Stop environment') }
expect(page).to have_content('close_app') expect(page).to have_content('close_app')
end end