Commit ff5b9115 authored by Mike Greiling's avatar Mike Greiling

add accept_confirm around "destroy/revoke" buttons

parent ecc5160a
...@@ -14,7 +14,7 @@ describe 'Profile > Applications' do ...@@ -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 ...@@ -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.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment