X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2b84452222db25cfcfdc2a788ebea79d2ea517f7..826a864e6c3e1f733b74d6d5aacf6b3253507a75:/test/controllers/dashboards_controller_test.rb diff --git a/test/controllers/dashboards_controller_test.rb b/test/controllers/dashboards_controller_test.rb index 5073df8cc..84f9610e5 100644 --- a/test/controllers/dashboards_controller_test.rb +++ b/test/controllers/dashboards_controller_test.rb @@ -28,7 +28,9 @@ class DashboardsControllerTest < ActionDispatch::IntegrationTest # Friends should be visible as we're now logged in assert_select "div#friends-container" do - assert_select "div.contact-activity", :count => 1 + assert_select "div" do + assert_select "a[href='/user/#{ERB::Util.u(friend_user.display_name)}']", :count => 1 + end end end end