diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 70fee45b8..711536723 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -2,6 +2,10 @@ <% @hide_footer_frames = true %> <% content_for :header do %> +
+ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> +
+

<%= @page_title %>

diff --git a/test/controllers/notifications_controller_test.rb b/test/controllers/notifications_controller_test.rb index 20b28201d..cf69d3703 100644 --- a/test/controllers/notifications_controller_test.rb +++ b/test/controllers/notifications_controller_test.rb @@ -1,7 +1,12 @@ require "test_helper" class NotificationsControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end + test "should get index and show back button" do + sign_in_as users(:david) + get notifications_url + assert_response :success + assert_select "a[href=?]", root_path do + assert_select "strong", text: "Back to Home" + end + end end