add accept_confirm around "destroy/revoke" buttons
This commit is contained in:
parent
ecc5160aa9
commit
ff5b9115dd
|
@ -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.')
|
||||||
|
|
Loading…
Reference in New Issue