add accept_confirm around "remove" button

This commit is contained in:
Mike Greiling 2017-10-31 21:22:42 -05:00
parent 91c0eeb65a
commit 9985406a91
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -82,7 +82,7 @@ describe 'Project variables', :js do
it 'deletes variable' do
page.within('.variables-table') do
click_on 'Remove'
accept_confirm { click_on 'Remove' }
end
expect(page).not_to have_selector('variables-table')