Other than simplifying the view, we can write tests using `click_link`, which makes the tests more robust. Clicking the `.icon-notification` element was causing some tests to fail when defining a window height of 750 pixels in the `admin_budgets` branch.
12 lines
379 B
Plaintext
12 lines
379 B
Plaintext
<% if user %>
|
|
<li id="notifications">
|
|
<%= link_to notifications_path, rel: "nofollow", title: text,
|
|
class: "notifications #{notifications_class}" do %>
|
|
<span class="show-for-sr">
|
|
<%= t("layouts.header.notification_item.notifications") %>
|
|
</span>
|
|
<span class="show-for-small-only"><%= text %></span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|