X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7609c118843d66c37dd428a2a162a4e15289b6ce..d60042335136bdbe34ecd86dfbe4bb5e9050045e:/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