Fix pipelines spec by surrounding click with accept_confirm

This commit is contained in:
Stan Hu 2017-08-12 23:08:47 -07:00
parent b03fe23d53
commit 12e6cb71c6

View file

@ -103,7 +103,7 @@ describe 'Pipelines', :js do
context 'when canceling' do
before do
find('.js-pipelines-cancel-button').click
accept_confirm { find('.js-pipelines-cancel-button').click }
wait_for_requests
end