From 8ee9843e3526f52f93620dd5c1dfc1967361dca9 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Fri, 13 Oct 2017 17:39:13 -0500 Subject: [PATCH] Add accept_confirm for admin_users_impersonation_tokens_spec --- spec/features/admin/admin_users_impersonation_tokens_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/admin_users_impersonation_tokens_spec.rb b/spec/features/admin/admin_users_impersonation_tokens_spec.rb index 0d6c729746b..e16eae219a4 100644 --- a/spec/features/admin/admin_users_impersonation_tokens_spec.rb +++ b/spec/features/admin/admin_users_impersonation_tokens_spec.rb @@ -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.")