Add accept_confirm for admin_users_impersonation_tokens_spec
This commit is contained in:
parent
341557d1b2
commit
8ee9843e35
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue