Replace link with button in index notifications
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
<%= t("notifications.index.title") %>
|
<%= t("notifications.index.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= link_to t("notifications.index.mark_all_as_read"),
|
<%= button_to t("notifications.index.mark_all_as_read"),
|
||||||
mark_all_as_read_notifications_path,
|
mark_all_as_read_notifications_path,
|
||||||
method: :put,
|
method: :put,
|
||||||
class: "button hollow float-right-medium" %>
|
class: "button hollow float-right-medium" %>
|
||||||
|
|
||||||
<ul class="menu simple clear">
|
<ul class="menu simple clear">
|
||||||
<li class="is-active">
|
<li class="is-active">
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ describe "Notifications" do
|
|||||||
click_notifications_icon
|
click_notifications_icon
|
||||||
|
|
||||||
expect(page).to have_css(".notification", count: 2)
|
expect(page).to have_css(".notification", count: 2)
|
||||||
click_link "Mark all as read"
|
click_button "Mark all as read"
|
||||||
|
|
||||||
expect(page).to have_css(".notification", count: 0)
|
expect(page).to have_css(".notification", count: 0)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user