end
end
- assert page.has_text? profile_message.gsub(/<.*?>/,'')[0,25]
+ assert page.has_text? profile_message.gsub(/<.*?>/,'')
assert page.has_text? required_field_title
page.find_field('user[prefs][:profile][:'+required_field_key+']').set 'value to fill required field'
page.find('.glyphicon-search').click
end
- # we should now be in the user's page as a result of search
- assert page.has_text? user['first_name']
+ # we should now be in the user's home project as a result of search
+ assert_selector "#Data_collections[data-object-uuid='#{user['uuid']}']"
# let's search again for an invalid valid uuid
within('.navbar-fixed-top') do