ensure javascript confirm dialog is accepted when attempting to delete boards

This commit is contained in:
Mike Greiling 2017-10-09 17:07:56 -05:00
parent 7e7baf7aab
commit 98b1b3fb87
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -136,7 +136,7 @@ describe 'Issue Boards', :js do
it 'allows user to delete board' do it 'allows user to delete board' do
page.within(find('.board:nth-child(2)')) do page.within(find('.board:nth-child(2)')) do
find('.board-delete').click accept_confirm { find('.board-delete').click }
end end
wait_for_requests wait_for_requests
@ -151,7 +151,7 @@ describe 'Issue Boards', :js do
find('.dropdown-menu-close').click find('.dropdown-menu-close').click
page.within(find('.board:nth-child(2)')) do page.within(find('.board:nth-child(2)')) do
find('.board-delete').click accept_confirm { find('.board-delete').click }
end end
wait_for_requests wait_for_requests