Add accept_confirm for admin_users_impersonation_tokens_spec

This commit is contained in:
Jose Ivan Vargas 2017-10-13 17:39:13 -05:00
parent 341557d1b2
commit 8ee9843e35
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ describe 'Admin > Users > Impersonation Tokens', :js do
it "allows revocation of an active impersonation token" do
visit admin_user_impersonation_tokens_path(user_id: user.username)
click_on "Revoke"
accept_confirm { click_on "Revoke" }
expect(page).to have_selector(".settings-message")
expect(no_personal_access_tokens_message).to have_text("This user has no active Impersonation Tokens.")