accept javascript confirm when testing pipeline deletion

This commit is contained in:
Mike Greiling 2017-10-09 23:13:57 -05:00
parent 73bb0029a3
commit 56025c7e6b
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -54,7 +54,7 @@ feature 'Pipeline Schedules', :js do
end
it 'deletes the pipeline' do
click_link 'Delete'
accept_confirm { click_link 'Delete' }
expect(page).not_to have_css(".pipeline-schedule-table-row")
end