X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5966acc207874f3196a43700cb9306411c77fe47..8d4d2c33918818c567e956258e376bf1ad6379d9:/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