Added 'Back to Home' link on notifications list page to improve navigation experience.

This commit is contained in:
vkagithala
2025-12-03 17:21:50 -08:00
parent cac0ca1656
commit 8685b62232
2 changed files with 12 additions and 3 deletions
@@ -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