fixed spec/features/admin/admin_users_spec.rb
This commit is contained in:
parent
92a3887c9a
commit
9d48177c8e
|
@ -290,7 +290,7 @@ describe "Admin::Users" do
|
|||
|
||||
it 'allows group membership to be revoked', js: true do
|
||||
page.within(first('.group_member')) do
|
||||
find('.btn-remove').click
|
||||
accept_confirm { find('.btn-remove').click }
|
||||
end
|
||||
wait_for_requests
|
||||
|
||||
|
@ -319,7 +319,7 @@ describe "Admin::Users" do
|
|||
|
||||
expect(page).to have_content("Secondary email: #{secondary_email.email}")
|
||||
|
||||
find("#remove_email_#{secondary_email.id}").click
|
||||
accept_confirm { find("#remove_email_#{secondary_email.id}").click }
|
||||
|
||||
expect(page).not_to have_content(secondary_email.email)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue