add accept_confirm around "delete comment" button

This commit is contained in:
Mike Greiling 2017-10-24 16:59:29 +03:00
parent 72717b591d
commit 34f7e82563
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -110,7 +110,7 @@ describe 'Comments on personal snippets', :js do
open_more_actions_dropdown(snippet_notes[0])
page.within("#notes-list li#note_#{snippet_notes[0].id}") do
click_on 'Delete comment'
accept_confirm { click_on 'Delete comment' }
end
wait_for_requests