add accept_confirm around "destroy/revoke" buttons

This commit is contained in:
Mike Greiling 2017-10-24 18:21:09 +03:00
parent ecc5160aa9
commit ff5b9115dd
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ describe 'Profile > Applications' do
page.within('.oauth-applications') do page.within('.oauth-applications') do
expect(page).to have_content('Your applications (1)') expect(page).to have_content('Your applications (1)')
click_button 'Destroy' accept_confirm { click_button 'Destroy' }
end end
expect(page).to have_content('The application was deleted successfully') expect(page).to have_content('The application was deleted successfully')
@ -28,7 +28,7 @@ describe 'Profile > Applications' do
page.within('.oauth-authorized-applications') do page.within('.oauth-authorized-applications') do
expect(page).to have_content('Authorized applications (1)') expect(page).to have_content('Authorized applications (1)')
click_button 'Revoke' accept_confirm { click_button 'Revoke' }
end end
expect(page).to have_content('The application was revoked access.') expect(page).to have_content('The application was revoked access.')