accept javascript confirm dialog on admin delete label link

This commit is contained in:
Mike Greiling 2017-10-13 16:40:28 -05:00
parent 8ee9843e35
commit 4f5fda8b34
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ RSpec.describe 'admin issues labels' do
it 'deletes all labels', :js do
page.within '.labels' do
page.all('.btn-remove').each do |remove|
remove.click
accept_confirm { remove.click }
wait_for_requests
end
end