Added 'Back to Home' link on notifications list page to improve navigation experience.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user