</li>
<% if current_user %>
+ <% if current_user.is_active %>
<li>
<form class="navbar-form" role="search"
data-search-modal=
</div>
</form>
</li>
+ <% end %>
<li class="dropdown notification-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="notifications-menu">
if user && user['is_active']
# let's search for a valid uuid
within('.navbar-fixed-top') do
+ page.has_field?('search')
page.find_field('search').set user['uuid']
page.find('.glyphicon-search').click
end
# seeing "Unrestricted public data" now
assert page.has_text?(publicly_accessible_project['name']), 'No text - publicly accessible project name'
assert page.has_text?(publicly_accessible_project['description']), 'No text - publicly accessible project description'
+ else
+ within('.navbar-fixed-top') do
+ page.has_no_field?('search')
+ end
end
end
[
+ [nil, nil],
+ ['inactive', api_fixture('users')['inactive']],
+ ['inactive_uninvited', api_fixture('users')['inactive_uninvited']],
['active', api_fixture('users')['active']],
['admin', api_fixture('users')['admin']],
].each do |token, user|