ensure javascript confirm dialog is accepted when attempting to delete boards
This commit is contained in:
parent
7e7baf7aab
commit
98b1b3fb87
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue