diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-24 18:21:09 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-24 18:21:09 +0300 |
commit | ff5b9115ddae3e281d0626707011ed9ebae5b02c (patch) | |
tree | ac2cef20ae3f92248db1d0568b8c260d2e7127bf /spec/features/profiles | |
parent | ecc5160aa9680783241571a67658b23f4f121ccc (diff) |
add accept_confirm around "destroy/revoke" buttons
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/oauth_applications_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/profiles/oauth_applications_spec.rb b/spec/features/profiles/oauth_applications_spec.rb index 8cb240077eb..d1edeef8da4 100644 --- a/spec/features/profiles/oauth_applications_spec.rb +++ b/spec/features/profiles/oauth_applications_spec.rb @@ -14,7 +14,7 @@ describe 'Profile > Applications' do page.within('.oauth-applications') do expect(page).to have_content('Your applications (1)') - click_button 'Destroy' + accept_confirm { click_button 'Destroy' } end expect(page).to have_content('The application was deleted successfully') @@ -28,7 +28,7 @@ describe 'Profile > Applications' do page.within('.oauth-authorized-applications') do expect(page).to have_content('Authorized applications (1)') - click_button 'Revoke' + accept_confirm { click_button 'Revoke' } end expect(page).to have_content('The application was revoked access.') |