- page.within(:xpath, '//tr[@data-object-uuid][1]') do
- assert (text.include? 'foo@example.com false'), 'Expected email'
- new_user_uuid = text.split[0]
-
- # go to the new user's page
- click_link new_user_uuid
- end
+ # go to the new user's page
+ find('tr', text: new_user_uuid).
+ find('a', text: 'Show').
+ click