From 12e6cb71c6ef3fbbad6961eb06ebf6d41e9eb26a Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sat, 12 Aug 2017 23:08:47 -0700 Subject: [PATCH] Fix pipelines spec by surrounding click with accept_confirm --- spec/features/projects/pipelines/pipelines_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb index b6a66a6d0c8..2d5407747af 100644 --- a/spec/features/projects/pipelines/pipelines_spec.rb +++ b/spec/features/projects/pipelines/pipelines_spec.rb @@ -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