X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5966acc207874f3196a43700cb9306411c77fe47..4f3576e91bcad927f037cd0f5a962960b9b2a8b5:/test/controllers/dashboards_controller_test.rb?ds=sidebyside 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