Commit 9d48177c authored by Phil Hughes's avatar Phil Hughes

fixed spec/features/admin/admin_users_spec.rb

parent 92a3887c
...@@ -290,7 +290,7 @@ describe "Admin::Users" do ...@@ -290,7 +290,7 @@ describe "Admin::Users" do
it 'allows group membership to be revoked', js: true do it 'allows group membership to be revoked', js: true do
page.within(first('.group_member')) do page.within(first('.group_member')) do
find('.btn-remove').click accept_confirm { find('.btn-remove').click }
end end
wait_for_requests wait_for_requests
...@@ -319,7 +319,7 @@ describe "Admin::Users" do ...@@ -319,7 +319,7 @@ describe "Admin::Users" do
expect(page).to have_content("Secondary email: #{secondary_email.email}") 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) expect(page).not_to have_content(secondary_email.email)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment